pub struct Keypair {
pub encryption_public: [u8; 32],
pub signing_key: SigningKey,
pub verify_key: VerifyKey,
}Expand description
Combined keypair for encryption and signing
Fields§
§encryption_public: [u8; 32]Encryption key (X25519 public key)
signing_key: SigningKeySigning key
verify_key: VerifyKeyVerification key (public)
Implementations§
Source§impl Keypair
impl Keypair
Sourcepub fn public_identity(&self) -> PublicIdentity
pub fn public_identity(&self) -> PublicIdentity
Get public identity (for sharing with peers)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keypair
impl RefUnwindSafe for Keypair
impl Send for Keypair
impl Sync for Keypair
impl Unpin for Keypair
impl UnsafeUnpin for Keypair
impl UnwindSafe for Keypair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more