Trait elliptic_curve::FromDigest[][src]

pub trait FromDigest<C: Curve> {
    fn from_digest<D>(digest: D) -> Self
    where
        D: Digest<OutputSize = C::FieldSize>
; }
This is supported on crate feature digest only.

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>, 
[src]

Instantiate this type from a Digest instance

Loading content...

Implementors

impl FromDigest<MockCurve> for Scalar[src]

This is supported on crate feature dev only.
Loading content...