pairing_plus::hash_to_field

Trait BaseFromRO

Source
pub trait BaseFromRO {
    type BaseLength: ArrayLength<u8>;

    // Required method
    fn from_okm(
        okm: &GenericArray<u8, <Self as BaseFromRO>::BaseLength>,
    ) -> Self;
}
Expand description

Generate an element of a base field for a random string of bytes (used by FromRO for extension fields).

Required Associated Types§

Required Methods§

Source

fn from_okm(okm: &GenericArray<u8, <Self as BaseFromRO>::BaseLength>) -> 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§