logo
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

Instantiate this type from a Digest instance

Implementors