Trait signature::PrehashSignature
source Β· Expand description
Marker trait for Signature
types computable as π(π(π))
i.e. ones which prehash a message to be signed as π(π)
Where:
π
: signature algorithmπ
: hash (a.k.a. digest) functionπ
: message
This approach is relatively common in signature schemes based on the Fiat-Shamir heuristic.
For signature types that implement this trait, when the derive-preview
Cargo feature is enabled a custom derive for Signer
is available for any
types that impl DigestSigner
, and likewise for deriving Verifier
for
types which impl DigestVerifier
.