Struct pairing::bls12_381::Fq2 [] [src]

pub struct Fq2 {
    pub c0: Fq,
    pub c1: Fq,
}

An element of Fq2, represented by c0 + c1 * u.

Fields

Methods

impl Fq2
[src]

[src]

Multiply this element by the cubic and quadratic nonresidue 1 + u.

[src]

Norm of Fq2 as extension field in i over Fq

Trait Implementations

impl Copy for Fq2
[src]

impl Clone for Fq2
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Fq2
[src]

[src]

Formats the value using the given formatter.

impl Eq for Fq2
[src]

impl PartialEq for Fq2
[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 Display for Fq2
[src]

[src]

Formats the value using the given formatter. Read more

impl Ord for Fq2
[src]

Fq2 elements are ordered lexicographically.

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for Fq2
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Rand for Fq2
[src]

[src]

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

impl Field for Fq2
[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]

Squares this element.

[src]

Doubles this element.

[src]

Negates this element.

[src]

Adds another element to this element.

[src]

Subtracts another element from this element.

[src]

Multiplies another element by 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]

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

impl SqrtField for Fq2
[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