[][src]Trait signature::RandomizedSigner

pub trait RandomizedSigner<R, S> where
    R: CryptoRng + RngCore,
    S: Signature
{ fn try_sign_with_rng(&self, rng: &mut R, msg: &[u8]) -> Result<S, Error>; fn sign_with_rng(&self, rng: &mut R, msg: &[u8]) -> S { ... } }
This is supported on feature="rand-preview" only.

Sign the given message using the provided external randomness source.

Required methods

fn try_sign_with_rng(&self, rng: &mut R, msg: &[u8]) -> Result<S, Error>

This is supported on feature="rand-preview" only.

Attempt to sign the given message, returning a digital signature on success, or an error if something went wrong.

The main intended use case for signing errors is when communicating with external signers, e.g. cloud KMS, HSMs, or other hardware tokens.

Loading content...

Provided methods

fn sign_with_rng(&self, rng: &mut R, msg: &[u8]) -> S

This is supported on feature="rand-preview" only.

Sign the given message and return a digital signature

Loading content...

Implementors

Loading content...