Versions in this module Expand all Collapse all v1 v1.0.1 Dec 19, 2023 Changes in this version + type BaseField = emulated.BLS12381Fp + type G1 struct + func NewG1(api frontend.API) (*G1, error) + type G1Affine = sw_emulated.AffinePoint[BaseField] + func NewG1Affine(v bls12381.G1Affine) G1Affine + type G2 struct + func NewG2(api frontend.API) *G2 + func (g2 *G2) AssertIsEqual(p, q *G2Affine) + type G2Affine struct + Lines *lineEvaluations + P g2AffP + func NewG2Affine(v bls12381.G2Affine) G2Affine + func NewG2AffineFixed(v bls12381.G2Affine) G2Affine + func NewG2AffineFixedPlaceholder() G2Affine + type GTEl = fields_bls12381.E12 + func NewGTEl(v bls12381.GT) GTEl + type Pairing struct + func NewPairing(api frontend.API) (*Pairing, error) + func (pr Pairing) AssertIsEqual(x, y *GTEl) + func (pr Pairing) AssertIsOnCurve(P *G1Affine) + func (pr Pairing) AssertIsOnG1(P *G1Affine) + func (pr Pairing) AssertIsOnG2(Q *G2Affine) + func (pr Pairing) AssertIsOnTwist(Q *G2Affine) + func (pr Pairing) FinalExponentiation(e *GTEl) *GTEl + func (pr Pairing) FinalExponentiationUnsafe(e *GTEl) *GTEl + func (pr Pairing) MillerLoop(P []*G1Affine, Q []*G2Affine) (*GTEl, error) + func (pr Pairing) Pair(P []*G1Affine, Q []*G2Affine) (*GTEl, error) + func (pr Pairing) PairingCheck(P []*G1Affine, Q []*G2Affine) error + type Scalar = emulated.Element[ScalarField] + func NewScalar(v fr_bls12381.Element) Scalar + type ScalarField = emulated.BLS12381Fr