Type Alias Fp12

Source
pub type Fp12 = SexticExtField<Fp2>;

Aliased Type§

struct Fp12 {
    pub c: [Bls12_381Fp2; 6],
}

Fields§

§c: [Bls12_381Fp2; 6]

Implementations§

Source§

impl Fp12

Source

pub fn invert(&self) -> Self

Source§

impl<F> SexticExtField<F>

Source

pub const fn new(c: [F; 6]) -> Self

Trait Implementations§

Source§

impl ComplexConjugate for Fp12

Source§

fn conjugate(self) -> Self

Conjugate an extension field element.
Source§

fn conjugate_assign(&mut self)

Replace self with its conjugate.
Source§

impl<'a> DivAssignUnsafe<&'a SexticExtField<Bls12_381Fp2>> for Fp12

Source§

fn div_assign_unsafe(&mut self, other: &'a Fp12)

Undefined behavior when denominator is not invertible.
Source§

impl DivAssignUnsafe for Fp12

Source§

fn div_assign_unsafe(&mut self, other: Self)

Undefined behavior when denominator is not invertible.
Source§

impl<'a> DivUnsafe<&'a SexticExtField<Bls12_381Fp2>> for Fp12

Source§

type Output = SexticExtField<Bls12_381Fp2>

Output type of div_unsafe.
Source§

fn div_unsafe(self, other: &'a Fp12) -> Self::Output

Undefined behavior when denominator is not invertible.
Source§

impl<'a> DivUnsafe for &'a Fp12

Source§

type Output = SexticExtField<Bls12_381Fp2>

Output type of div_unsafe.
Source§

fn div_unsafe(self, other: &'a Fp12) -> Self::Output

Undefined behavior when denominator is not invertible.
Source§

impl DivUnsafe for Fp12

Source§

type Output = SexticExtField<Bls12_381Fp2>

Output type of div_unsafe.
Source§

fn div_unsafe(self, other: Self) -> Self::Output

Undefined behavior when denominator is not invertible.
Source§

impl Field for Fp12

Source§

const ZERO: Self

The zero element of the field, the additive identity.
Source§

const ONE: Self

The one element of the field, the multiplicative identity.
Source§

type SelfRef<'a> = &'a SexticExtField<Bls12_381Fp2>

Source§

fn double_assign(&mut self)

Doubles self in-place.
Source§

fn square_assign(&mut self)

Square self in-place
Source§

fn invert(&self) -> Self

Unchecked inversion. See DivUnsafe. Read more
Source§

impl FieldExtension<Bls12_381Fp2> for Fp12

Source§

fn frobenius_map(&self, power: usize) -> Self

We assume that the frobenius map power is < 12

Source§

const D: usize = 6usize

Extension field degree.
Source§

type Coeffs = [Bls12_381Fp2; 6]

This should be [BaseField; D]. It is an associated type due to rust const generic limitations.
Source§

fn from_coeffs(coeffs: Self::Coeffs) -> Self

Create an extension field element from its base field coefficients.
Source§

fn from_bytes(bytes: &[u8]) -> Self

Create an extension field element from little-endian bytes.
Source§

fn to_coeffs(self) -> Self::Coeffs

Convert an extension field element to its base field coefficients.
Source§

fn to_bytes(&self) -> Vec<u8>

Convert an extension field element to little-endian bytes.
Source§

fn embed(c0: Fp2) -> Self

Embed a base field element into an extension field element.
Source§

fn mul_base(&self, rhs: &Fp2) -> Self

Multiply an extension field element by an element in the base field
Source§

impl FromLineMType<Bls12_381Fp2> for Fp12

Source§

impl<'a> Mul<&'a SexticExtField<Bls12_381Fp2>> for Fp12

Source§

type Output = SexticExtField<Bls12_381Fp2>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a Fp12) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> Mul for &'a Fp12

Source§

type Output = SexticExtField<Bls12_381Fp2>

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a Fp12) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for Fp12

Source§

type Output = SexticExtField<Bls12_381Fp2>

The resulting type after applying the * operator.
Source§

fn mul(self, other: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl<'a> MulAssign<&'a SexticExtField<Bls12_381Fp2>> for Fp12

Source§

fn mul_assign(&mut self, other: &'a Fp12)

Performs the *= operation. Read more
Source§

impl MulAssign for Fp12

Source§

fn mul_assign(&mut self, other: Self)

Performs the *= operation. Read more
Source§

impl Neg for Fp12

Source§

type Output = SexticExtField<Bls12_381Fp2>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<'a, F: Field> Add<&'a SexticExtField<F>> for SexticExtField<F>

Source§

type Output = SexticExtField<F>

The resulting type after applying the + operator.
Source§

fn add(self, other: &'a SexticExtField<F>) -> Self::Output

Performs the + operation. Read more
Source§

impl<F: Field> Add for SexticExtField<F>

Source§

type Output = SexticExtField<F>

The resulting type after applying the + operator.
Source§

fn add(self, other: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<'a, F: Field> AddAssign<&'a SexticExtField<F>> for SexticExtField<F>

Source§

fn add_assign(&mut self, other: &'a SexticExtField<F>)

Performs the += operation. Read more
Source§

impl<F: Field> AddAssign for SexticExtField<F>

Source§

fn add_assign(&mut self, other: Self)

Performs the += operation. Read more
Source§

impl<F: Clone> Clone for SexticExtField<F>

Source§

fn clone(&self) -> SexticExtField<F>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<F: Field> Debug for SexticExtField<F>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, F> Deserialize<'de> for SexticExtField<F>
where F: Deserialize<'de>,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<F: PartialEq> PartialEq for SexticExtField<F>

Source§

fn eq(&self, other: &SexticExtField<F>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<F> Serialize for SexticExtField<F>
where F: Serialize,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a, F: Field> Sub<&'a SexticExtField<F>> for SexticExtField<F>

Source§

type Output = SexticExtField<F>

The resulting type after applying the - operator.
Source§

fn sub(self, other: &'a SexticExtField<F>) -> Self::Output

Performs the - operation. Read more
Source§

impl<F: Field> Sub for SexticExtField<F>

Source§

type Output = SexticExtField<F>

The resulting type after applying the - operator.
Source§

fn sub(self, other: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a, F: Field> SubAssign<&'a SexticExtField<F>> for SexticExtField<F>

Source§

fn sub_assign(&mut self, other: &'a SexticExtField<F>)

Performs the -= operation. Read more
Source§

impl<F: Field> SubAssign for SexticExtField<F>

Source§

fn sub_assign(&mut self, other: Self)

Performs the -= operation. Read more
Source§

impl<F: Eq> Eq for SexticExtField<F>

Source§

impl<F> StructuralPartialEq for SexticExtField<F>