Struct pairing::bls12_381::Fq12
[−]
[src]
pub struct Fq12 { pub c0: Fq6, pub c1: Fq6, }
An element of Fq12, represented by c0 + c1 * w.
Fields
c0: Fq6
c1: Fq6
Methods
impl Fq12
[src]
fn conjugate(&mut self)
fn mul_by_014(&mut self, c0: &Fq2, c1: &Fq2, c4: &Fq2)
Trait Implementations
impl Copy for Fq12
[src]
impl Clone for Fq12
[src]
fn clone(&self) -> Fq12
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Fq12
[src]
impl Eq for Fq12
[src]
impl PartialEq for Fq12
[src]
fn eq(&self, __arg_0: &Fq12) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Fq12) -> bool
This method tests for !=
.
impl Display for Fq12
[src]
impl Rand for Fq12
[src]
fn rand<R: Rng>(rng: &mut R) -> Self
Generates a random instance of this type using the specified source of randomness. Read more
impl Field for Fq12
[src]
fn zero() -> Self
Returns the zero element of the field, the additive identity.
fn one() -> Self
Returns the one element of the field, the multiplicative identity.
fn is_zero(&self) -> bool
Returns true iff this element is zero.
fn double(&mut self)
Doubles this element.
fn negate(&mut self)
Negates this element.
fn add_assign(&mut self, other: &Self)
Adds another element to this element.
fn sub_assign(&mut self, other: &Self)
Subtracts another element from this element.
fn frobenius_map(&mut self, power: usize)
Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more
fn square(&mut self)
Squares this element.
fn mul_assign(&mut self, other: &Self)
Multiplies another element by this element.
fn inverse(&self) -> Option<Self>
Computes the multiplicative inverse of this element, if nonzero.
fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self
Exponentiates this element by a number represented with u64
limbs, least significant digit first. Read more