Trait elliptic_curve::FromDigest
source ·
[−]pub trait FromDigest<C: Curve> {
fn from_digest<D>(digest: D) -> Self
where
D: Digest<OutputSize = C::FieldSize>;
}
Expand description
Instantiate this type from the output of a digest.
This can be used for implementing hash-to-scalar (e.g. as in ECDSA) or hash-to-curve algorithms.
Required methods
fn from_digest<D>(digest: D) -> Self where
D: Digest<OutputSize = C::FieldSize>,
fn from_digest<D>(digest: D) -> Self where
D: Digest<OutputSize = C::FieldSize>,
Instantiate this type from a Digest
instance