pub struct SigningKeyPair { /* private fields */ }Expand description
Ed25519 signing key pair
Implementations§
Source§impl SigningKeyPair
impl SigningKeyPair
Sourcepub fn from_seed_hex(seed_hex: &str) -> Result<Self, SigningError>
pub fn from_seed_hex(seed_hex: &str) -> Result<Self, SigningError>
Create from a 32-byte seed (hex-encoded)
Sourcepub fn public_key_hex(&self) -> String
pub fn public_key_hex(&self) -> String
Get the public key as hex
Sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
Get the verifying key
Auto Trait Implementations§
impl Freeze for SigningKeyPair
impl RefUnwindSafe for SigningKeyPair
impl Send for SigningKeyPair
impl Sync for SigningKeyPair
impl Unpin for SigningKeyPair
impl UnwindSafe for SigningKeyPair
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