File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ type ecdsa_curve = variant {
8585 secp256k1;
8686};
8787
88+ type vetkd_curve = variant {
89+ bls12_381_g2;
90+ };
91+
8892type schnorr_algorithm = variant {
8993 bip340secp256k1;
9094 ed25519;
@@ -352,6 +356,27 @@ type sign_with_schnorr_result = record {
352356 signature : blob;
353357};
354358
359+ type vetkd_public_key_args = record {
360+ canister_id : opt canister_id;
361+ context : blob;
362+ key_id : record { curve : vetkd_curve; name : text };
363+ };
364+
365+ type vetkd_public_key_result = record {
366+ public_key : blob;
367+ };
368+
369+ type vetkd_derive_key_args = record {
370+ input : blob;
371+ context : blob;
372+ transport_public_key : blob;
373+ key_id : record { curve : vetkd_curve; name : text };
374+ };
375+
376+ type vetkd_derive_key_result = record {
377+ encrypted_key : blob;
378+ };
379+
355380type node_metrics_history_args = record {
356381 subnet_id : principal;
357382 start_at_timestamp_nanos : nat64;
@@ -462,6 +487,10 @@ service ic : {
462487 schnorr_public_key : (schnorr_public_key_args) -> (schnorr_public_key_result);
463488 sign_with_schnorr : (sign_with_schnorr_args) -> (sign_with_schnorr_result);
464489
490+ // Threshold key derivation
491+ vetkd_public_key : (vetkd_public_key_args) -> (vetkd_public_key_result);
492+ vetkd_derive_key : (vetkd_derive_key_args) -> (vetkd_derive_key_result);
493+
465494 // bitcoin interface
466495 bitcoin_get_balance : (bitcoin_get_balance_args) -> (bitcoin_get_balance_result);
467496 bitcoin_get_utxos : (bitcoin_get_utxos_args) -> (bitcoin_get_utxos_result);
You can’t perform that action at this time.
0 commit comments