G1NativeAffinePoint class

BLS12-381 G1 group in projective coordinates (x : y : z).

Inheritance
Mixed-in types

Constructors

G1NativeAffinePoint({required Bls12NativeFp x, required Bls12NativeFp y, required bool infinity})
G1NativeAffinePoint.conditionalSelect(G1NativeAffinePoint a, G1NativeAffinePoint b, bool choice)
factory
G1NativeAffinePoint.fromBytes(List<int> bytes, {bool check = true})
Creates a G1 affine point from bytes, validating that it is on-curve and in the correct subgroup.
factory
G1NativeAffinePoint.fromBytesUnchecked(List<int> bytes)
Creates a G1 affine point from bytes without checking curve or subgroup validity.
factory
G1NativeAffinePoint.fromProjective(G1NativeProjective p)
factory
G1NativeAffinePoint.generator()
factory
G1NativeAffinePoint.identity()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
infinity bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
variables List
no setteroverride
x Bls12NativeFp
final
y Bls12NativeFp
final

Methods

cast<T extends ECPoint<SCALAR, POINT>>() → T
inherited
double() G1NativeProjective
Point doubling.
override
isIdentity() bool
check identity
override
isOnCurve() bool
Checks whether the point satisfies the BLS12-381 curve equation in projective form.
isTorsionFree() bool
Checks whether the point is in the correct G1 subgroup (torsion-free).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes({PubKeyModes mode = PubKeyModes.compressed}) List<int>
Serializes the point to bytes in either compressed or uncompressed form.
override
toHex() String
inherited
toProjective() G1NativeProjective
Converts this affine point to its projective representation.
toString() String
A string representation of this object.
inherited

Operators

operator *(JubJubNativeFq rhs) G1NativeProjective
Scalar multiplication using native field elements.
override
operator +(Bls12NativePoint<G1NativeProjective> rhs) G1NativeProjective
Point addition using native (single BigInt) field arithmetic.
override
operator -(Bls12NativePoint<G1NativeProjective> rhs) G1NativeProjective
operator ==(Object other) bool
The equality operator.
inherited
operator unary-() G1NativeAffinePoint