This commit is contained in:
2026-01-05 08:43:28 +07:00
parent 067f88dfa6
commit 23f8cc49c6
12 changed files with 142 additions and 264 deletions

View File

@@ -75,6 +75,11 @@ impl Identity {
self.public_key = None;
}
/// Returns the public key of the identity.
pub fn option_public_key(&self) -> Option<PublicKey> {
self.public_key
}
/// Returns the public key of the identity.
pub fn public_key(&self) -> PublicKey {
// This method is safe to unwrap because the public key is always called when the identity is created.