pub struct Es256kSigningKey(/* private fields */);Expand description
A signing key.
Implementations§
Source§impl Es256kSigningKey
impl Es256kSigningKey
Sourcepub fn from_slice(raw: &[u8]) -> Result<Es256kSigningKey>
pub fn from_slice(raw: &[u8]) -> Result<Es256kSigningKey>
Create a signing key from a slice.
Sourcepub fn to_verifying_key(&self) -> PublicKey
pub fn to_verifying_key(&self) -> PublicKey
Convert a signing key to a verification key.
Trait Implementations§
Source§impl AsRef<SecretKey> for Es256kSigningKey
impl AsRef<SecretKey> for Es256kSigningKey
Auto Trait Implementations§
impl Freeze for Es256kSigningKey
impl RefUnwindSafe for Es256kSigningKey
impl Send for Es256kSigningKey
impl Sync for Es256kSigningKey
impl Unpin for Es256kSigningKey
impl UnsafeUnpin for Es256kSigningKey
impl UnwindSafe for Es256kSigningKey
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