checkpoint

This commit is contained in:
John Smith
2023-02-22 18:29:07 -05:00
parent ecc69bff27
commit 4085af7fc4
5 changed files with 57 additions and 32 deletions

View File

@@ -122,6 +122,14 @@ impl RoutingTableUnlockedInner {
tks
}
pub fn node_id_typed_key_pairs(&self) -> Vec<TypedKeyPair> {
let mut tkps = Vec::new();
for (ck, v) in &self.node_id_keypairs {
tkps.push(TypedKeyPair::new(*ck, v.key, v.secret));
}
tkps
}
pub fn node_id_secret(&self, kind: CryptoKind) -> SecretKey {
self.node_id_keypairs.get(&kind).unwrap().secret
}