Derive Macro signature_derive::Signer [−][src]
#[derive(Signer)]
Expand description
Derive the [Signer
] trait for a type which impls DigestSigner
.
When implementing the DigestSigner
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 [Signer
] 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.