ic_vetkd_notes/
vetkd_types.rsuse candid::CandidType;
use candid::Deserialize;
use candid::Principal;
pub type CanisterId = Principal;
#[derive(CandidType, Deserialize)]
pub enum VetKDCurve {
#[serde(rename = "bls12_381")]
Bls12_381,
}
#[derive(CandidType, Deserialize)]
pub struct VetKDKeyId {
pub curve: VetKDCurve,
pub name: String,
}
#[derive(CandidType, Deserialize)]
pub struct VetKDPublicKeyRequest {
pub canister_id: Option<CanisterId>,
pub derivation_path: Vec<Vec<u8>>,
pub key_id: VetKDKeyId,
}
#[derive(CandidType, Deserialize)]
pub struct VetKDPublicKeyReply {
pub public_key: Vec<u8>,
}
#[derive(CandidType, Deserialize)]
pub struct VetKDEncryptedKeyRequest {
pub public_key_derivation_path: Vec<Vec<u8>>,
pub derivation_id: Vec<u8>,
pub key_id: VetKDKeyId,
pub encryption_public_key: Vec<u8>,
}
#[derive(CandidType, Deserialize)]
pub struct VetKDEncryptedKeyReply {
pub encrypted_key: Vec<u8>,
}