Bls12Fp2 class
Implements arithmetic over the quadratic extension field Fp2.
- Implemented types
- Mixed-in types
Constructors
- Bls12Fp2({required Bls12Fp c0, required Bls12Fp c1})
-
const
- Bls12Fp2.b()
-
factory
- Bls12Fp2.b3()
-
factory
- Bls12Fp2.conditionalSelect(Bls12Fp2 a, Bls12Fp2 b, bool choice)
-
factory
- Bls12Fp2.from(Bls12Fp f)
-
factory
- Bls12Fp2.one()
-
One element
factory
- Bls12Fp2.zero()
-
Zero element
factory
Properties
Methods
-
conjugate(
) → Bls12Fp2 - Conjugate: a + bu -> a - bu
-
double(
) → Bls12Fp2 -
override
-
frobeniusMap(
) → Bls12Fp2 - Raises this element to p.
-
invert(
) → Bls12Fp2? -
Inverse in Fp2
override
-
isZero(
) → bool -
Check if zero
override
-
lexicographicallyLargest(
) → bool -
mulByNonresidue(
) → Bls12Fp2 - Multiply by non-residue (u + 1, beta = -1)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
powVarTime(
List< BigInt> exponent) → Bls12Fp2 -
sqrt(
) → FieldSqrtResult< Bls12Fp2> -
override
-
square(
) → Bls12Fp2 -
Complex squaring
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator *(
Bls12Fp2 rhs) → Bls12Fp2 -
Multiply two Fp2 elements
override
-
operator +(
Bls12Fp2 rhs) → Bls12Fp2 -
Add two Fp2 elements
override
-
operator -(
Bls12Fp2 rhs) → Bls12Fp2 -
Subtract two Fp2 elements
override
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → Bls12Fp2 -
Negation: -(a + bu) = -a - bu
override