Trait ecdsa::hazmat::FromDigest [−][src]
pub trait FromDigest<C: Curve> { fn from_digest<D>(digest: D) -> Self
where
D: Digest<OutputSize = FieldSize<C>>; }
This is supported on crate features
hazmat
and digest
only.Expand description
Instantiate this type from the output of a digest.
This trait is intended for use in ECDSA and should perform a conversion
which is compatible with the rules for calculating h
from H(M)
set out
in RFC6979 section 2.4. This conversion cannot fail.
This trait may also be useful for other hash-to-scalar or hash-to-curve use cases.
Required methods
fn from_digest<D>(digest: D) -> Self where
D: Digest<OutputSize = FieldSize<C>>,
fn from_digest<D>(digest: D) -> Self where
D: Digest<OutputSize = FieldSize<C>>,
Instantiate this type from a [Digest
] instance
Implementations on Foreign Types
This is supported on crate features
hazmat
and digest
only.