Bls12NativeFp2 class
Implements arithmetic over the quadratic extension field Fp2.
- Implemented types
- Mixed-in types
Constructors
- Bls12NativeFp2({required Bls12NativeFp c0, required Bls12NativeFp c1})
-
const
- Bls12NativeFp2.b()
-
factory
- Bls12NativeFp2.b3()
-
factory
- Bls12NativeFp2.conditionalSelect(Bls12NativeFp2 a, Bls12NativeFp2 b, bool choice)
-
factory
- Bls12NativeFp2.from(Bls12NativeFp f)
-
factory
- Bls12NativeFp2.one()
-
One element
factory
- Bls12NativeFp2.zero()
-
Zero element
factory
Properties
- c0 → Bls12NativeFp
-
final
- c1 → Bls12NativeFp
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- variables → List
-
no setteroverride
Methods
-
conjugate(
) → Bls12NativeFp2 -
copyWith(
{Bls12NativeFp? c0, Bls12NativeFp? c1}) → Bls12NativeFp2 -
double(
) → Bls12NativeFp2 -
override
-
frobeniusMap(
) → Bls12NativeFp2 - Raises this element to p.
-
invert(
) → Bls12NativeFp2? -
Inverse in Fp2
override
-
isZero(
) → bool -
Check if zero
override
-
lexicographicallyLargest(
) → bool -
mulByNonresidue(
) → Bls12NativeFp2 - Multiply by non-residue (u + 1, beta = -1)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(
BigInt exp) → Bls12NativeFp2 -
powVarTime(
List< BigInt> exponent) → Bls12NativeFp2 - Raise to exponent given as 6-limb BigInt array (u64)
-
sqrt(
) → FieldSqrtResult< Bls12NativeFp2> -
override
-
square(
) → Bls12NativeFp2 -
Complex squaring
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator *(
Bls12NativeFp2 rhs) → Bls12NativeFp2 -
Multiply two Fp2 elements
override
-
operator +(
Bls12NativeFp2 rhs) → Bls12NativeFp2 -
Add two Fp2 elements
override
-
operator -(
Bls12NativeFp2 rhs) → Bls12NativeFp2 -
Subtract two Fp2 elements
override
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → Bls12NativeFp2 -
override