Versions in this module Expand all Collapse all v0 v0.2.1 Jan 3, 2022 v0.2.0 Jan 2, 2022 Changes in this version + const P0 + const P1 + const P2 + const P3 + var Base = &Point + var E = &Point + var P = new(big.Int).SetString("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7", 16) + var UOne = &FieldElement + var UP = &FieldElement + type FieldElement [4]uint64 + var UZero FieldElement + func FromBigInt(b1 *big.Int) *FieldElement + func (out *FieldElement) Add(p, p2 *FieldElement) *FieldElement + func (out *FieldElement) Cmp(p2 *FieldElement) int + func (out *FieldElement) Equals(p2 *FieldElement) bool + func (out *FieldElement) Format(s fmt.State, c rune) + func (out *FieldElement) Inverse(p2 *FieldElement) *FieldElement + func (out *FieldElement) IsOne() bool + func (out *FieldElement) IsZero() bool + func (out *FieldElement) Mod(p *FieldElement) *FieldElement + func (out *FieldElement) Mul(p, p2 *FieldElement) *FieldElement + func (out *FieldElement) Mul2(p *FieldElement) *FieldElement + func (out *FieldElement) MulD(p *FieldElement) *FieldElement + func (out *FieldElement) Set(p2 *FieldElement) *FieldElement + func (out *FieldElement) SetBigInt(b1 *big.Int) *FieldElement + func (out *FieldElement) Sqr(p *FieldElement) *FieldElement + func (out *FieldElement) String() string + func (out *FieldElement) Sub(p, p2 *FieldElement) *FieldElement + func (out *FieldElement) ToBigInt() *big.Int + type Point struct + T FieldElement + X FieldElement + Y FieldElement + Z FieldElement + func (p *Point) Add(p1, p2 *Point) *Point + func (p *Point) AddZ1(p1, p2 *Point) *Point + func (p *Point) Double(dp *Point) *Point + func (p *Point) DoubleZ1(dp *Point) *Point + func (p *Point) Equals(p2 *Point) bool + func (p *Point) Format(s fmt.State, c rune) + func (p *Point) ScalarBaseMult(b *FieldElement) *Point + func (p *Point) ScalarMult(sp *Point, b *FieldElement) *Point + func (p *Point) Set(p2 *Point) *Point + func (p *Point) String() string + func (p *Point) ToAffine(pp *Point) *Point