ell static method
Bls12NativeFp12
ell(
- Bls12NativeFp12 f,
- (Bls12NativeFp2, Bls12NativeFp2, Bls12NativeFp2) coeffs,
- G1NativeAffinePoint p
Evaluates the line function in the Miller loop (ell function).
Implementation
static Bls12NativeFp12 ell(
Bls12NativeFp12 f,
(Bls12NativeFp2, Bls12NativeFp2, Bls12NativeFp2) coeffs,
G1NativeAffinePoint p,
) {
Bls12NativeFp2 c0 = coeffs.$1;
Bls12NativeFp2 c1 = coeffs.$2;
c0 = c0.copyWith(c0: c0.c0 * p.y, c1: c0.c1 * p.y);
c1 = c1.copyWith(c0: c1.c0 * p.x, c1: c1.c1 * p.x);
return f.mulBy014(coeffs.$3, c1, c0);
}