pairing_plus::hash_to_field

Trait FromRO

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

    // Required method
    fn from_ro(okm: &GenericArray<u8, <Self as FromRO>::Length>) -> Self;
}
Expand description

Generate a field element from a random string of bytes

Required Associated Types§

Required Methods§

Source

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

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§

Source§

impl FromRO for Fq2

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

Source§

impl<T: BaseFromRO> FromRO for T

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