elliptic_curve::hash2curve

Trait FromOkm

Source
pub trait FromOkm {
    type Length: ArrayLength<u8>;

    // Required method
    fn from_okm(data: &GenericArray<u8, Self::Length>) -> Self;
}
Available on crate feature hash2curve only.
Expand description

The trait for helping to convert to a field element.

Required Associated Types§

Source

type Length: ArrayLength<u8>

The number of bytes needed to convert to a field element.

Required Methods§

Source

fn from_okm(data: &GenericArray<u8, Self::Length>) -> Self

Convert a byte sequence into a field element.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§