pub struct SigningKey(/* private fields */);Expand description
An Ed25519 signing key: the 32-byte seed of RFC 8032 section 5.1.5.
Zeroed on drop.
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn from_bytes(bytes: &[u8; 32]) -> Self
pub fn from_bytes(bytes: &[u8; 32]) -> Self
Load a signing key. Every 32-byte string is a valid seed.
Sourcepub fn verifying_key(&self) -> Result<VerifyingKey, Error>
pub fn verifying_key(&self) -> Result<VerifyingKey, Error>
The corresponding verifying key.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SigningKey
impl Freeze for SigningKey
impl Move for SigningKey
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnsafeUnpin for SigningKey
impl UnwindSafe for SigningKey
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