pub struct SigningKey { /* private fields */ }Expand description
An Ed25519 signing key, from its 32-byte seed (RFC 8032 5.1.5).
Debug shows the key id, never the seed.
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn from_seed(seed: &[u8; 32]) -> SigningKey
pub fn from_seed(seed: &[u8; 32]) -> SigningKey
The key whose seed is seed.
Sourcepub fn public_key(&self) -> [u8; 32]
pub fn public_key(&self) -> [u8; 32]
The 32-byte public key, as a key document’s public holds it in hex (9.2).
Trait Implementations§
Source§impl Clone for SigningKey
impl Clone for SigningKey
Auto Trait Implementations§
impl Freeze 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