pub trait DigestPrimitive: PrimeCurve {
    type Digest: BlockSizeUser + Digest<OutputSize = Self::FieldBytesSize> + FixedOutput + FixedOutputReset;
}
Available on (crate features ecdsa or sha256) and crate feature hazmat and crate feature ecdsa-core and crate feature digest only.
Expand description

Bind a preferred [Digest] algorithm to an elliptic curve type.

Generally there is a preferred variety of the SHA-2 family used with ECDSA for a particular elliptic curve.

This trait can be used to specify it, and with it receive a blanket impl of PrehashSignature, used by signature_derive) for the Signature type for a particular elliptic curve.

Required Associated Types§

source

type Digest: BlockSizeUser + Digest<OutputSize = Self::FieldBytesSize> + FixedOutput + FixedOutputReset

Preferred digest to use when computing ECDSA signatures for this elliptic curve. This is typically a member of the SHA-2 family.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DigestPrimitive for Secp256k1

Available on crate feature sha256 only.
§

type Digest = CoreWrapper<CtVariableCoreWrapper<Sha256VarCore, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, OidSha256>>