Trait coins_bip32::ecdsa::signature::PrehashSignature

source ยท
pub trait PrehashSignature {
    type Digest: Digest;
}
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 crate 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.

Required Associated Typesยง

source

type Digest: Digest

Preferred Digest algorithm to use when computing this signature type.

Implementations on Foreign Typesยง

sourceยง

impl PrehashSignature for Signature

sourceยง

impl<C> PrehashSignature for Signature<C>

sourceยง

impl<C> PrehashSignature for Signature<C>

Implementorsยง