Trait paired::FromRO[][src]

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

Generate a field element from a random string of bytes.

Associated Types

type Length: ArrayLength<u8>[src]

Required methods

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

Implementors

impl FromRO for Fq2[src]

Fq2 implementation: hash to two elemnts of Fq and combine.

type Length = U128

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

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

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

type Length = <T as BaseFromRO>::BaseLength

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