Versions in this module Expand all Collapse all v0 v0.0.2 Feb 21, 2023 v0.0.1 Apr 14, 2022 Changes in this version + var Curves []*Curve = []*Curve + type Curve struct + FieldBytes int + GenG1 *G1 + GenG2 *G2 + GenGt *Gt + GroupOrder *Zr + func (c *Curve) FExp(a *Gt) *Gt + func (c *Curve) HashToG1(data []byte) *G1 + func (c *Curve) HashToZr(data []byte) *Zr + func (c *Curve) ModAdd(a, b, m *Zr) *Zr + func (c *Curve) ModMul(a1, b1, m *Zr) *Zr + func (c *Curve) ModNeg(a1, m *Zr) *Zr + func (c *Curve) ModSub(a, b, m *Zr) *Zr + func (c *Curve) NewG1() *G1 + func (c *Curve) NewG1FromBytes(b []byte) (p *G1, err error) + func (c *Curve) NewG2() *G2 + func (c *Curve) NewG2FromBytes(b []byte) (p *G2, err error) + func (c *Curve) NewGtFromBytes(b []byte) (p *Gt, err error) + func (c *Curve) NewRandomZr(rng io.Reader) *Zr + func (c *Curve) NewZrFromBytes(b []byte) *Zr + func (c *Curve) NewZrFromInt(i int64) *Zr + func (c *Curve) Pairing(a *G2, b *G1) *Gt + func (c *Curve) Pairing2(p *G2, q *G1, r *G2, s *G1) *Gt + func (c *Curve) Rand() (io.Reader, error) + type CurveID int + const BN254 + const FP256BN_AMCL + const FP256BN_AMCL_MIRACL + type G1 struct + func (g *G1) Add(a *G1) + func (g *G1) Bytes() []byte + func (g *G1) Clone(a *G1) + func (g *G1) Copy() *G1 + func (g *G1) Equals(a *G1) bool + func (g *G1) IsInfinity() bool + func (g *G1) MarshalJSON() ([]byte, error) + func (g *G1) Mul(a *Zr) *G1 + func (g *G1) Mul2(e *Zr, Q *G1, f *Zr) *G1 + func (g *G1) String() string + func (g *G1) Sub(a *G1) + func (g *G1) UnmarshalJSON(raw []byte) error + type G2 struct + func (g *G2) Add(a *G2) + func (g *G2) Affine() + func (g *G2) Bytes() []byte + func (g *G2) Clone(a *G2) + func (g *G2) Copy() *G2 + func (g *G2) Equals(a *G2) bool + func (g *G2) MarshalJSON() ([]byte, error) + func (g *G2) Mul(a *Zr) *G2 + func (g *G2) String() string + func (g *G2) Sub(a *G2) + func (g *G2) UnmarshalJSON(raw []byte) error + type Gt struct + func (g *Gt) Bytes() []byte + func (g *Gt) Equals(a *Gt) bool + func (g *Gt) Exp(z *Zr) *Gt + func (g *Gt) Inverse() + func (g *Gt) IsUnity() bool + func (g *Gt) MarshalJSON() ([]byte, error) + func (g *Gt) Mul(a *Gt) + func (g *Gt) String() string + func (g *Gt) UnmarshalJSON(raw []byte) error + type Zr struct + func (z *Zr) Bytes() []byte + func (z *Zr) Clone(a *Zr) + func (z *Zr) Copy() *Zr + func (z *Zr) Equals(a *Zr) bool + func (z *Zr) Int() (int64, error) + func (z *Zr) InvModP(a *Zr) + func (z *Zr) MarshalJSON() ([]byte, error) + func (z *Zr) Mod(a *Zr) + func (z *Zr) Mul(a *Zr) *Zr + func (z *Zr) Plus(a *Zr) *Zr + func (z *Zr) PowMod(a *Zr) *Zr + func (z *Zr) String() string + func (z *Zr) UnmarshalJSON(raw []byte) error