Trait eth_types::Field

source ·
pub trait Field: Halo2Field + PrimeField<Repr = [u8; 32]> + FromUniformBytes<64> + Ord + OpsIdentity<Output = Self> {
    // Provided methods
    fn get_lower_128(&self) -> u128 { ... }
    fn get_lower_32(&self) -> u32 { ... }
}
Expand description

Trait used to reduce verbosity with the declaration of the [PrimeField] trait and its repr.

Provided Methods§

source

fn get_lower_128(&self) -> u128

Gets the lower 128 bits of this field element when expressed canonically.

source

fn get_lower_32(&self) -> u32

Gets the lower 32 bits of this field element when expressed canonically.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Field for Fq

source§

impl Field for Fr

Implementors§