darkfi_sdk::crypto::smt::util

Trait FieldElement

Source
pub trait FieldElement:
    WithSmallOrderMulGroup<3>
    + Ord
    + PrimeField {
    // Required method
    fn as_biguint(&self) -> BigUint;
}

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl FieldElement for Fp

Source§

impl FieldElement for Fq

Implementors§