Versions in this module Expand all Collapse all v1 v1.0.3 Nov 15, 2023 Changes in this version + const Bits + const Bytes + const Limbs + func Butterfly(a, b *Element) + func Modulus() *big.Int + func MulBy13(x *Element) + func MulBy3(x *Element) + func MulBy5(x *Element) + type Element [4]uint64 + func BatchInvert(a []Element) []Element + func NewElement() *Element + func NewElementFromUint64(v uint64) Element + func One() Element + func (z *Element) Add(x, y *Element) *Element + func (z *Element) Bit(i uint64) uint64 + func (z *Element) BitLen() int + func (z *Element) Bytes() (res [Limbs * 8]byte) + func (z *Element) Cmp(x *Element) int + func (z *Element) Div(x, y *Element) *Element + func (z *Element) Double(x *Element) *Element + func (z *Element) Equal(x *Element) bool + func (z *Element) Exp(x Element, exponent *big.Int) *Element + func (z *Element) FromMont() *Element + func (z *Element) Halve() + func (z *Element) Inverse(x *Element) *Element + func (z *Element) IsUint64() bool + func (z *Element) IsZero() bool + func (z *Element) Legendre() int + func (z *Element) LexicographicallyLargest() bool + func (z *Element) Marshal() []byte + func (z *Element) Mul(x, y *Element) *Element + func (z *Element) Neg(x *Element) *Element + func (z *Element) Set(x *Element) *Element + func (z *Element) SetBigInt(v *big.Int) *Element + func (z *Element) SetBytes(e []byte) *Element + func (z *Element) SetInterface(i1 interface{}) (*Element, error) + func (z *Element) SetOne() *Element + func (z *Element) SetRandom() (*Element, error) + func (z *Element) SetString(s string) *Element + func (z *Element) SetUint64(v uint64) *Element + func (z *Element) SetZero() *Element + func (z *Element) Sqrt(x *Element) *Element + func (z *Element) Square(x *Element) *Element + func (z *Element) String() string + func (z *Element) Sub(x, y *Element) *Element + func (z *Element) ToBigInt(res *big.Int) *big.Int + func (z *Element) ToMont() *Element + func (z Element) ToBigIntRegular(res *big.Int) *big.Int + func (z Element) ToRegular() Element