pub struct SigningKey { /* private fields */ }Expand description
A key for signing messages.
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn from_phrase<S>(phrase: S) -> Result<Self>
pub fn from_phrase<S>(phrase: S) -> Result<Self>
Create a signing key from a mnemonic phrase.
Sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
Get the signature verifying key.
Trait Implementations§
Source§impl Debug for SigningKey
impl Debug 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