pub struct IdentityKeyPair { /* private fields */ }Expand description
Local long-term identity key pair used to sign handshake transcripts.
Implementations§
Source§impl IdentityKeyPair
impl IdentityKeyPair
Sourcepub fn from_secret_key_bytes(secret_key: [u8; 32]) -> Self
pub fn from_secret_key_bytes(secret_key: [u8; 32]) -> Self
Builds an identity key pair from Ed25519 secret-key bytes.
Sourcepub fn public_key(&self) -> [u8; 32]
pub fn public_key(&self) -> [u8; 32]
Returns the Ed25519 public key bytes.
Sourcepub fn secret_key_bytes(&self) -> [u8; 32]
pub fn secret_key_bytes(&self) -> [u8; 32]
Returns the Ed25519 secret key bytes.
Trait Implementations§
Source§impl Clone for IdentityKeyPair
impl Clone for IdentityKeyPair
Source§fn clone(&self) -> IdentityKeyPair
fn clone(&self) -> IdentityKeyPair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdentityKeyPair
impl Debug for IdentityKeyPair
Source§impl PartialEq for IdentityKeyPair
impl PartialEq for IdentityKeyPair
impl Eq for IdentityKeyPair
impl StructuralPartialEq for IdentityKeyPair
Auto Trait Implementations§
impl Freeze for IdentityKeyPair
impl RefUnwindSafe for IdentityKeyPair
impl Send for IdentityKeyPair
impl Sync for IdentityKeyPair
impl Unpin for IdentityKeyPair
impl UnsafeUnpin for IdentityKeyPair
impl UnwindSafe for IdentityKeyPair
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