pub trait RandomizedSigner<S> where
    S: Signature
{ fn try_sign_with_rng(
        &self,
        rng: impl CryptoRng + RngCore,
        msg: &[u8]
    ) -> Result<S, Error>; fn sign_with_rng(&self, rng: impl CryptoRng + RngCore, msg: &[u8]) -> S { ... } }
Expand description

Sign the given message using the provided external randomness source.

Required Methods

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.

Provided Methods

Sign the given message and return a digital signature

Implementations on Foreign Types

Implementors