@@ -47,56 +47,3 @@ fn derivation_path_to_context(derivation_path: &[&[u8]]) -> Vec<u8> {
47
47
let rt: [ u8 ; 32 ] = hasher. finalize ( ) . into ( ) ;
48
48
rt. into ( )
49
49
}
50
-
51
- // // https://github.com/dfinity/examples/blob/master/rust/vetkd/README.md
52
- // const VETKD_SYSTEM_API_CANISTER_ID: &str = "s55qq-oqaaa-aaaaa-aaakq-cai";
53
-
54
- // fn vetkd_system_api_canister_id() -> Principal {
55
- // Principal::from_text(VETKD_SYSTEM_API_CANISTER_ID).expect("failed to create canister ID")
56
- // }
57
-
58
- // #[derive(CandidType, Deserialize, Serialize)]
59
- // pub enum VetKDCurve {
60
- // #[serde(rename = "bls12_381_g2")]
61
- // #[allow(non_camel_case_types)]
62
- // Bls12_381_G2,
63
- // }
64
-
65
- // #[derive(CandidType, Deserialize, Serialize)]
66
- // pub struct VetKDKeyId {
67
- // pub curve: VetKDCurve,
68
- // pub name: String,
69
- // }
70
-
71
- // #[serde_as]
72
- // #[derive(CandidType, Deserialize, Serialize)]
73
- // pub struct VetKDPublicKeyRequest {
74
- // pub canister_id: Option<Principal>,
75
- // #[serde_as(as = "Vec<serde_with::Bytes>")]
76
- // pub derivation_path: Vec<Vec<u8>>,
77
- // pub key_id: VetKDKeyId,
78
- // }
79
-
80
- // #[derive(CandidType, Deserialize, Serialize)]
81
- // pub struct VetKDPublicKeyReply {
82
- // #[serde(with = "serde_bytes")]
83
- // pub public_key: Vec<u8>,
84
- // }
85
-
86
- // #[serde_as]
87
- // #[derive(CandidType, Deserialize, Serialize)]
88
- // pub struct VetKDEncryptedKeyRequest {
89
- // #[serde_as(as = "Vec<serde_with::Bytes>")]
90
- // pub derivation_path: Vec<Vec<u8>>,
91
- // #[serde(with = "serde_bytes")]
92
- // pub derivation_id: Vec<u8>,
93
- // #[serde(with = "serde_bytes")]
94
- // pub encryption_public_key: Vec<u8>,
95
- // pub key_id: VetKDKeyId,
96
- // }
97
-
98
- // #[derive(CandidType, Deserialize, Serialize)]
99
- // pub struct VetKDEncryptedKeyReply {
100
- // #[serde(with = "serde_bytes")]
101
- // pub encrypted_key: Vec<u8>,
102
- // }
0 commit comments