Struct pairing::bls12_381::Fr [] [src]

pub struct Fr(_);

Trait Implementations

impl Copy for Fr
[src]

impl Clone for Fr
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Fr
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Fr
[src]

impl Debug for Fr
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Fr
[src]

[src]

Formats the value using the given formatter. Read more

impl Rand for Fr
[src]

[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl From<Fr> for FrRepr
[src]

[src]

Performs the conversion.

impl PrimeField for Fr
[src]

The prime field can be converted back and forth into this biginteger representation. Read more

[src]

Convert this prime field element into a biginteger representation.

[src]

Convert a biginteger representation into a prime field element, if the number is an element of the field. Read more

[src]

Returns the field characteristic; the modulus.

NUM_BITS: u32 = MODULUS_BITS

How many bits are needed to represent an element of this field.

CAPACITY: u32 = <Self>::NUM_BITS - 1

How many bits of information can be reliably stored in the field element.

[src]

Returns the multiplicative generator of char() - 1 order. This element must also be quadratic nonresidue. Read more

S: u32 = S

2^s * t = char() - 1 with t odd.

[src]

Returns the 2^s root of unity computed by exponentiating the multiplicative_generator() by t. Read more

[src]

Interpret a string of numbers as a (congruent) prime field element. Does not accept unnecessary leading zeroes or a blank string. Read more

impl Field for Fr
[src]

[src]

Returns the zero element of the field, the additive identity.

[src]

Returns the one element of the field, the multiplicative identity.

[src]

Returns true iff this element is zero.

[src]

Adds another element to this element.

[src]

Doubles this element.

[src]

Subtracts another element from this element.

[src]

Negates this element.

[src]

Computes the multiplicative inverse of this element, if nonzero.

[src]

Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more

[src]

Multiplies another element by this element.

[src]

Squares this element.

[src]

Exponentiates this element by a number represented with u64 limbs, least significant digit first. Read more

impl SqrtField for Fr
[src]

[src]

Returns the Legendre symbol of the field element.

[src]

Returns the square root of the field element, if it is quadratic residue. Read more

Auto Trait Implementations

impl Send for Fr

impl Sync for Fr