G1Projective class
BLS12-381 G1 group in projective coordinates (x : y : z).
- Inheritance
-
- Object
- ECPoint<
JubJubFq, Bls12Point< G1Projective> > - BaseBls12Point<
JubJubFq, Bls12Point< G1Projective> > - Bls12Point<
G1Projective> - G1Projective
Constructors
- G1Projective({required Bls12Fp x, required Bls12Fp y, required Bls12Fp z})
- G1Projective.conditionalSelect(G1Projective a, G1Projective b, bool choice)
-
factory
- G1Projective.fromAffine(G1AffinePoint affine)
-
factory
-
G1Projective.fromBytes(List<
int> bytes) -
Creates a G1 point from bytes, validating that it is on-curve and in the correct subgroup.
factory
-
G1Projective.fromBytesUnchecked(List<
int> bytes) -
Creates a G1 affine point from bytes without checking curve or subgroup validity.
factory
- G1Projective.generator()
-
generator
factory
- G1Projective.identity()
-
identity point
factory
Properties
Methods
-
cast<
T extends ECPoint< (SCALAR, POINT> >) → T -
inherited
-
clearCofactor(
) → G1Projective - Clears the G1 cofactor by subtracting mulByX from the point.
-
copyWith(
{Bls12Fp? x, Bls12Fp? y, Bls12Fp? z}) → G1Projective -
double(
) → G1Projective -
Point doubling.
override
-
isIdentity(
) → bool -
check identity
override
-
isOnCurve(
) → bool - Checks whether the point satisfies the BLS12-381 curve equation in projective form.
-
mulBy3b(
Bls12Fp a) → Bls12Fp -
mulByX(
) → G1Projective -
Multiply this point by
BLS_Xusing double-and-add -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toAffine(
) → G1AffinePoint - convert point to affine
-
toBytes(
{PubKeyModes mode = PubKeyModes.compressed}) → List< int> -
Serializes the point to bytes in either compressed or uncompressed form.
override
-
toHex(
) → String -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator *(
JubJubFq rhs) → G1Projective -
operations
override
-
operator +(
Bls12Point< G1Projective> rhs) → G1Projective -
Point addition.
override
-
operator -(
Bls12Point< G1Projective> rhs) → G1Projective -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator unary-(
) → G1Projective