pub struct SigningKey { /* private fields */ }Expand description
An Ed25519 private, signing key
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn into_bytes(self) -> [u8; 32]
pub fn into_bytes(self) -> [u8; 32]
Get the raw bytes
Sourcepub fn from_bytes(value: [u8; 32]) -> Self
pub fn from_bytes(value: [u8; 32]) -> Self
Build a new signing key
Trait Implementations§
Source§impl Default for SigningKey
impl Default for SigningKey
Source§fn default() -> SigningKey
fn default() -> SigningKey
Returns the “default value” for a type. Read more
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