[][src]Function signatory::sign_digest

pub fn sign_digest<D, S>(
    signer: &dyn DigestSigner<D, S>,
    digest: D
) -> Result<S, Error> where
    D: Digest,
    S: Signature

Sign the given prehashed Digest with the given signer. This can be used to avoid importing the DigestSigner and Signature traits