pub struct CommKeyPair { /* private fields */ }Expand description
An Ed25519 key pair for signing messages.
Implementations§
Source§impl CommKeyPair
impl CommKeyPair
Sourcepub fn from_bytes(bytes: &[u8; 32]) -> Self
pub fn from_bytes(bytes: &[u8; 32]) -> Self
Create from existing signing key bytes (32 bytes).
Sourcepub fn public_key_hex(&self) -> String
pub fn public_key_hex(&self) -> String
Get the public key as hex string.
Sourcepub fn signing_key_bytes(&self) -> [u8; 32]
pub fn signing_key_bytes(&self) -> [u8; 32]
Get the raw signing key bytes.
Sourcepub fn verifying_key_bytes(&self) -> [u8; 32]
pub fn verifying_key_bytes(&self) -> [u8; 32]
Get the raw verifying key bytes.
Trait Implementations§
Source§impl Clone for CommKeyPair
impl Clone for CommKeyPair
Auto Trait Implementations§
impl Freeze for CommKeyPair
impl RefUnwindSafe for CommKeyPair
impl Send for CommKeyPair
impl Sync for CommKeyPair
impl Unpin for CommKeyPair
impl UnsafeUnpin for CommKeyPair
impl UnwindSafe for CommKeyPair
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