Trait hash2curve::FromRO[][src]

pub trait FromRO {
    type Length: ArrayLength<u8>;
    fn from_ro(okm: &GenericArray<u8, Self::Length>) -> Self;
}

Generate an element from a random byte sequence

Associated Types

type Length: ArrayLength<u8>[src]

The amount of bytes the element expects to receive

Loading content...

Required methods

fn from_ro(okm: &GenericArray<u8, Self::Length>) -> Self[src]

Crate an element from the specified random byte sequence

Loading content...

Implementors

impl<T: BaseFromRO> FromRO for T[src]

BaseFromRO is a FromRO implementation for a field with extension degree 1.

type Length = <T as BaseFromRO>::BaseLength

Loading content...