Trait snarkvm_fields::PrimeField [−][src]
The interface for a prime field.
Associated Types
type Parameters: FieldParameters<BigInteger = Self::BigInteger>[src]
type BigInteger: BigInteger[src]
Required methods
fn from_repr(repr: Self::BigInteger) -> Option<Self>[src]
Returns a prime field element from its underlying representation.
fn into_repr(&self) -> Self::BigInteger[src]
Returns the underlying representation of the prime field element.
fn from_repr_raw(repr: Self::BigInteger) -> Self[src]
Returns a prime field element from its underlying raw representation.
fn into_repr_raw(&self) -> Self::BigInteger[src]
Returns the underlying raw representation of the prime field element.
fn multiplicative_generator() -> Self[src]
Returns the multiplicative generator of char() - 1 order.
fn root_of_unity() -> Self[src]
Returns the 2^s root of unity.
Provided methods
fn qnr_to_t() -> Self[src]
Return the a QNR^T
fn size_in_bits() -> usize[src]
Returns the field size in bits.
fn trace() -> Self::BigInteger[src]
Returns the trace.
fn trace_minus_one_div_two() -> Self::BigInteger[src]
Returns the trace minus one divided by two.
fn modulus_minus_one_div_two() -> Self::BigInteger[src]
Returns the modulus minus one divided by two.