Trait ecdsa::hazmat::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 features hazmat and digest only.

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 = C::FieldSize>, 
[src]

Instantiate this type from a [Digest] instance

Loading content...

Implementations on Foreign Types

impl FromDigest<MockCurve> for Scalar[src]

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

Implementors

Loading content...