Trait ethers::signers::yubihsm::asymmetric::signature::RandomizedDigestSigner[][src]

pub trait RandomizedDigestSigner<D, S> where
    D: Digest,
    S: Signature
{ fn try_sign_digest_with_rng(
        &self,
        rng: impl CryptoRng + RngCore,
        digest: D
    ) -> Result<S, Error>; fn sign_digest_with_rng(
        &self,
        rng: impl CryptoRng + RngCore,
        digest: D
    ) -> S { ... } }
Expand description

Combination of DigestSigner and RandomizedSigner with support for computing a signature over a digest which requires entropy from an RNG.

Required methods

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

Provided methods

Sign the given prehashed message Digest, returning a signature.

Panics in the event of a signing error.

Implementations on Foreign Types

Sign message prehash using an ephemeral scalar (k) derived according to a variant of RFC 6979 (Section 3.6) which supplies additional entropy from an RNG.

Implementors