Derive Macro signature::Verifier

source ·
#[derive(Verifier)]
Available on crate feature derive only.
Expand description

Derive the Verifier trait for a type which impls DigestVerifier.

When implementing the DigestVerifier trait for a signature type which itself impl’s the PrehashSignature trait (which marks signature algorithms which are computed using a Digest), signature providers can automatically derive the Verifier trait when the digest algorithm is PrehashSignature::Digest (i.e. the “standard” digest algorithm for a given signature type)

This automates all of the digest computation otherwise needed for a complete signature algorithm implementation.