Trait snarkvm_wasm::PrimeField[][src]

pub trait PrimeField: FftField<FftParameters = Self::Parameters> + FromStr {
    type Parameters: FieldParameters;
    type BigInteger: BigInteger;
    fn from_repr(repr: Self::BigInteger) -> Option<Self>;
fn into_repr(&self) -> Self::BigInteger;
fn from_repr_raw(repr: Self::BigInteger) -> Self;
fn into_repr_raw(&self) -> Self::BigInteger; fn size_in_bits() -> usize { ... }
fn trace() -> Self::BigInteger { ... }
fn trace_minus_one_div_two() -> Self::BigInteger { ... }
fn modulus_minus_one_div_two() -> Self::BigInteger { ... } }
Expand description

The interface for a prime field.

Associated Types

Required methods

Returns a prime field element from its underlying representation.

Returns the underlying representation of the prime field element.

Returns a prime field element from its underlying raw representation.

Returns the underlying raw representation of the prime field element.

Provided methods

Returns the field size in bits.

Returns the trace.

Returns the trace minus one divided by two.

Returns the modulus minus one divided by two.

Implementors