Versions in this module Expand all Collapse all v1 v1.8.0 Mar 11, 2022 Changes in this version + const DoubleWideFieldBytes + const FieldBytes + const GtFieldBytes + const Limbs + const WideFieldBytes + func Bls12381FqNew() *native.Field + type Engine struct + func (e *Engine) AddPair(g1 *G1, g2 *G2) *Engine + func (e *Engine) AddPairInvG1(g1 *G1, g2 *G2) *Engine + func (e *Engine) AddPairInvG2(g1 *G1, g2 *G2) *Engine + func (e *Engine) Check() bool + func (e *Engine) Reset() *Engine + func (e *Engine) Result() *Gt + type Fq [native.FieldLimbs]uint64 + type G1 struct + func (g1 *G1) Add(arg1, arg2 *G1) *G1 + func (g1 *G1) BigInt() (x, y *big.Int) + func (g1 *G1) CMove(arg1, arg2 *G1, choice int) *G1 + func (g1 *G1) ClearCofactor(a *G1) *G1 + func (g1 *G1) Double(a *G1) *G1 + func (g1 *G1) Equal(rhs *G1) int + func (g1 *G1) FromCompressed(input *[FieldBytes]byte) (*G1, error) + func (g1 *G1) FromUncompressed(input *[WideFieldBytes]byte) (*G1, error) + func (g1 *G1) Generator() *G1 + func (g1 *G1) GetX() *fp + func (g1 *G1) GetY() *fp + func (g1 *G1) Hash(hash *native.EllipticPointHasher, msg, dst []byte) *G1 + func (g1 *G1) Identity() *G1 + func (g1 *G1) InCorrectSubgroup() int + func (g1 *G1) IsIdentity() int + func (g1 *G1) IsOnCurve() int + func (g1 *G1) Mul(a *G1, s *native.Field) *G1 + func (g1 *G1) MulByX(a *G1) *G1 + func (g1 *G1) Neg(a *G1) *G1 + func (g1 *G1) Random(reader io.Reader) (*G1, error) + func (g1 *G1) Set(a *G1) *G1 + func (g1 *G1) SetBigInt(x, y *big.Int) (*G1, error) + func (g1 *G1) Sub(arg1, arg2 *G1) *G1 + func (g1 *G1) SumOfProducts(points []*G1, scalars []*native.Field) (*G1, error) + func (g1 *G1) ToAffine(a *G1) *G1 + func (g1 *G1) ToCompressed() [FieldBytes]byte + func (g1 *G1) ToUncompressed() [WideFieldBytes]byte + type G2 struct + func (g2 *G2) Add(arg1, arg2 *G2) *G2 + func (g2 *G2) BigInt() (x, y *big.Int) + func (g2 *G2) CMove(arg1, arg2 *G2, choice int) *G2 + func (g2 *G2) ClearCofactor(a *G2) *G2 + func (g2 *G2) Double(a *G2) *G2 + func (g2 *G2) Equal(rhs *G2) int + func (g2 *G2) FromCompressed(input *[WideFieldBytes]byte) (*G2, error) + func (g2 *G2) FromUncompressed(input *[DoubleWideFieldBytes]byte) (*G2, error) + func (g2 *G2) Generator() *G2 + func (g2 *G2) GetX() *fp2 + func (g2 *G2) GetY() *fp2 + func (g2 *G2) Hash(hash *native.EllipticPointHasher, msg, dst []byte) *G2 + func (g2 *G2) Identity() *G2 + func (g2 *G2) InCorrectSubgroup() int + func (g2 *G2) IsIdentity() int + func (g2 *G2) IsOnCurve() int + func (g2 *G2) Mul(a *G2, s *native.Field) *G2 + func (g2 *G2) MulByX(a *G2) *G2 + func (g2 *G2) Neg(a *G2) *G2 + func (g2 *G2) Random(reader io.Reader) (*G2, error) + func (g2 *G2) Set(a *G2) *G2 + func (g2 *G2) SetBigInt(x, y *big.Int) (*G2, error) + func (g2 *G2) Sub(arg1, arg2 *G2) *G2 + func (g2 *G2) SumOfProducts(points []*G2, scalars []*native.Field) (*G2, error) + func (g2 *G2) ToAffine(a *G2) *G2 + func (g2 *G2) ToCompressed() [WideFieldBytes]byte + func (g2 *G2) ToUncompressed() [DoubleWideFieldBytes]byte + type Gt fp12 + func (gt *Gt) Add(arg1, arg2 *Gt) *Gt + func (gt *Gt) Bytes() [GtFieldBytes]byte + func (gt *Gt) Double(a *Gt) *Gt + func (gt *Gt) Equal(rhs *Gt) int + func (gt *Gt) FinalExponentiation(a *Gt) *Gt + func (gt *Gt) Generator() *Gt + func (gt *Gt) Invert(a *Gt) (*Gt, int) + func (gt *Gt) IsOne() int + func (gt *Gt) IsZero() int + func (gt *Gt) Mul(a *Gt, s *native.Field) *Gt + func (gt *Gt) Neg(a *Gt) *Gt + func (gt *Gt) Random(reader io.Reader) (*Gt, error) + func (gt *Gt) Set(a *Gt) *Gt + func (gt *Gt) SetBytes(input *[GtFieldBytes]byte) (*Gt, int) + func (gt *Gt) SetOne() *Gt + func (gt *Gt) Square(a *Gt) *Gt + func (gt *Gt) Sub(arg1, arg2 *Gt) *Gt