|
1 | | -// Generated from dfinity/portal commit 39bbfcbae104623ffca6743ed139f851bf7561de for file 'docs/references/_attachments/ic.did' |
| 1 | +// Generated from dfinity/portal commit 8453be2fa6fae9023bcea3b5ea8a8ef8225d5e4d for file 'docs/references/_attachments/ic.did' |
2 | 2 | type canister_id = principal; |
3 | 3 | type wasm_module = blob; |
4 | 4 | type snapshot_id = blob; |
@@ -86,6 +86,10 @@ type ecdsa_curve = variant { |
86 | 86 | secp256k1; |
87 | 87 | }; |
88 | 88 |
|
| 89 | +type vetkd_curve = variant { |
| 90 | + bls12_381_g2; |
| 91 | +}; |
| 92 | + |
89 | 93 | type schnorr_algorithm = variant { |
90 | 94 | bip340secp256k1; |
91 | 95 | ed25519; |
@@ -353,6 +357,27 @@ type sign_with_schnorr_result = record { |
353 | 357 | signature : blob; |
354 | 358 | }; |
355 | 359 |
|
| 360 | +type vetkd_public_key_args = record { |
| 361 | + canister_id : opt canister_id; |
| 362 | + context : blob; |
| 363 | + key_id : record { curve : vetkd_curve; name : text }; |
| 364 | +}; |
| 365 | + |
| 366 | +type vetkd_public_key_result = record { |
| 367 | + public_key : blob; |
| 368 | +}; |
| 369 | + |
| 370 | +type vetkd_derive_key_args = record { |
| 371 | + input : blob; |
| 372 | + context : blob; |
| 373 | + transport_public_key : blob; |
| 374 | + key_id : record { curve : vetkd_curve; name : text }; |
| 375 | +}; |
| 376 | + |
| 377 | +type vetkd_derive_key_result = record { |
| 378 | + encrypted_key : blob; |
| 379 | +}; |
| 380 | + |
356 | 381 | type node_metrics_history_args = record { |
357 | 382 | subnet_id : principal; |
358 | 383 | start_at_timestamp_nanos : nat64; |
@@ -463,6 +488,10 @@ service ic : { |
463 | 488 | schnorr_public_key : (schnorr_public_key_args) -> (schnorr_public_key_result); |
464 | 489 | sign_with_schnorr : (sign_with_schnorr_args) -> (sign_with_schnorr_result); |
465 | 490 |
|
| 491 | + // Threshold key derivation |
| 492 | + vetkd_public_key : (vetkd_public_key_args) -> (vetkd_public_key_result); |
| 493 | + vetkd_derive_key : (vetkd_derive_key_args) -> (vetkd_derive_key_result); |
| 494 | + |
466 | 495 | // bitcoin interface |
467 | 496 | bitcoin_get_balance : (bitcoin_get_balance_args) -> (bitcoin_get_balance_result); |
468 | 497 | bitcoin_get_utxos : (bitcoin_get_utxos_args) -> (bitcoin_get_utxos_result); |
|
0 commit comments