[][src]Trait signature::DigestSigner

pub trait DigestSigner<D, S> where
    D: Digest,
    S: Signature
{ fn try_sign_digest(&self, digest: D) -> Result<S, Error>; fn sign_digest(&self, digest: D) -> S { ... } }

Sign the given prehashed message Digest using Self.

This trait is only available when the digest-preview cargo feature is enabled.

Required methods

fn try_sign_digest(&self, digest: D) -> Result<S, Error>

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

Loading content...

Provided methods

fn sign_digest(&self, digest: D) -> S

Sign the given prehashed message Digest, returning a signature.

Panics in the event of a signing error.

Loading content...

Implementors

Loading content...