[][src]Trait signatory::DigestSigner

pub trait DigestSigner<D, S>: Send + Sync where
    D: Digest,
    S: Signature
{ fn sign(&self, digest: D) -> Result<S, Error>; }

Trait for signers which take a prehashed Digest as input. The digest cargo feature must be enabled for this to be available.

Required methods

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

Sign the output of the given digest with signer's private key, returning a signature.

Loading content...

Implementors

Loading content...