Skip to content

chore: update from portal repo #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/dfx/src/util/ic.did
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ type ecdsa_curve = variant {
secp256k1;
};

type vetkd_curve = variant {
bls12_381_g2;
};

type schnorr_algorithm = variant {
bip340secp256k1;
ed25519;
Expand Down Expand Up @@ -352,6 +356,27 @@ type sign_with_schnorr_result = record {
signature : blob;
};

type vetkd_public_key_args = record {
canister_id : opt canister_id;
context : blob;
key_id : record { curve : vetkd_curve; name : text };
};

type vetkd_public_key_result = record {
public_key : blob;
};

type vetkd_derive_key_args = record {
input : blob;
context : blob;
transport_public_key : blob;
key_id : record { curve : vetkd_curve; name : text };
};

type vetkd_derive_key_result = record {
encrypted_key : blob;
};

type node_metrics_history_args = record {
subnet_id : principal;
start_at_timestamp_nanos : nat64;
Expand Down Expand Up @@ -462,6 +487,10 @@ service ic : {
schnorr_public_key : (schnorr_public_key_args) -> (schnorr_public_key_result);
sign_with_schnorr : (sign_with_schnorr_args) -> (sign_with_schnorr_result);

// Threshold key derivation
vetkd_public_key : (vetkd_public_key_args) -> (vetkd_public_key_result);
vetkd_derive_key : (vetkd_derive_key_args) -> (vetkd_derive_key_result);

// bitcoin interface
bitcoin_get_balance : (bitcoin_get_balance_args) -> (bitcoin_get_balance_result);
bitcoin_get_utxos : (bitcoin_get_utxos_args) -> (bitcoin_get_utxos_result);
Expand Down