Struct threshold_crypto::Fr

source ·
pub struct Fr(_);

Trait Implementations§

The resulting type after applying the + operator.
Performs the + operation. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Returns the zero element of the field, the additive identity.
Returns the one element of the field, the multiplicative identity.
Returns true iff this element is zero.
Adds another element to this element.
Doubles this element.
Subtracts another element from this element.
Negates this element.
Computes the multiplicative inverse of this element, if nonzero.
Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more
Multiplies another element by this element.
Squares this element.
Exponentiates this element by a number represented with u64 limbs, least significant digit first. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
Performs the *= operation. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
The prime field can be converted back and forth into this biginteger representation. Read more
Convert this prime field element into a biginteger representation.
Convert a biginteger representation into a prime field element, if the number is an element of the field. Read more
Returns the field characteristic; the modulus.
How many bits are needed to represent an element of this field.
How many bits of information can be reliably stored in the field element.
Returns the multiplicative generator of char() - 1 order. This element must also be quadratic nonresidue. Read more
2^s * t = char() - 1 with t odd.
Returns the 2^s root of unity computed by exponentiating the multiplicative_generator() by t. Read more
Interpret a string of numbers as a (congruent) prime field element. Does not accept unnecessary leading zeroes or a blank string. Read more
Generates a random instance of this type using the specified source of randomness. Read more
Returns the Legendre symbol of the field element.
Returns the square root of the field element, if it is quadratic residue. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.