Bls12PairingUtils class

Utilities for computing pairings and Miller loop operations on BLS12-381.

Constructors

Bls12PairingUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

blsX BigInt
The BLS parameter x used in Miller loop.
no setter

Static Methods

additionStep(G2NativeProjective r, G2NativeAffinePoint q) → (G2NativeProjective, (Bls12NativeFp2, Bls12NativeFp2, Bls12NativeFp2))
Performs an addition step in the Miller loop and returns the new point with line coefficients.
doublingStep(G2NativeProjective r) → (G2NativeProjective, (Bls12NativeFp2, Bls12NativeFp2, Bls12NativeFp2))
Performs a doubling step on a G2 point and returns the new point with line coefficients.
ell(Bls12NativeFp12 f, (Bls12NativeFp2, Bls12NativeFp2, Bls12NativeFp2) coeffs, G1NativeAffinePoint p) Bls12NativeFp12
Evaluates the line function in the Miller loop (ell function).
millerLoop<D extends Object?>(MillerLoopDriver<D> deriver) → D
Performs the Miller loop using the given driver.
pairing(G1NativeAffinePoint p, G2NativeAffinePoint q) GtNative
Computes the optimal Ate pairing e(P, Q) ∈ GT for affine points P and Q.