pub struct SigningKeyWithDefaults<T: Signer + ?Sized>(/* private fields */);Available on crate feature
test_util only.Expand description
A SigningKey that uses the default trait methods.
Trait Implementations§
Source§impl<T: Signer + ?Sized> ConstantTimeEq for SigningKeyWithDefaults<T>
impl<T: Signer + ?Sized> ConstantTimeEq for SigningKeyWithDefaults<T>
Source§impl<T: Signer + ?Sized> SecretKey for SigningKeyWithDefaults<T>
impl<T: Signer + ?Sized> SecretKey for SigningKeyWithDefaults<T>
Source§fn new<R: Csprng>(rng: &mut R) -> Self
fn new<R: Csprng>(rng: &mut R) -> Self
Creates a random key, possibly using entropy from
rng. Read moreSource§fn try_export_secret(&self) -> Result<SecretKeyBytes<Self::Size>, ExportError>
fn try_export_secret(&self) -> Result<SecretKeyBytes<Self::Size>, ExportError>
Attempts to export the key’s secret data.
Source§impl<T: Signer + ?Sized> SigningKey<SignerWithDefaults<T>> for SigningKeyWithDefaults<T>
impl<T: Signer + ?Sized> SigningKey<SignerWithDefaults<T>> for SigningKeyWithDefaults<T>
Source§fn sign(&self, msg: &[u8]) -> Result<SignatureWithDefaults<T>, SignerError>
fn sign(&self, msg: &[u8]) -> Result<SignatureWithDefaults<T>, SignerError>
Returns the signature over
msg, which must NOT be
pre-hashed.impl<T: Signer + ?Sized> ZeroizeOnDrop for SigningKeyWithDefaults<T>
Auto Trait Implementations§
impl<T> Freeze for SigningKeyWithDefaults<T>
impl<T> RefUnwindSafe for SigningKeyWithDefaults<T>
impl<T> Send for SigningKeyWithDefaults<T>
impl<T> Sync for SigningKeyWithDefaults<T>
impl<T> Unpin for SigningKeyWithDefaults<T>
impl<T> UnwindSafe for SigningKeyWithDefaults<T>
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