Documentation ¶
Index ¶
- Constants
- Variables
- func Equals(a, b Element) bool
- func IsZero(e Element) bool
- func Legendre(x Element) g.Element
- func Sgn0(x Element) bool
- type Element
- func Add(a, b Element) Element
- func CanonicalSqrt(x Element) (Element, bool)
- func Div(a, b Element) Element
- func Double(a Element) Element
- func ExpPowerOf2(x Element, power int) Element
- func Frobenius(x Element) Element
- func FromCanonicalLittleEndianBytes(in []byte) (Element, error)
- func FromF(elem g.Element) Element
- func FromUint64(a uint64) Element
- func FromUint64Array(elems [5]uint64) Element
- func InverseOrZero(a Element) Element
- func Mul(a, b Element) Element
- func Neg(e Element) Element
- func RepeatedFrobenius(x Element, count int) Element
- func Sample() Element
- func ScalarMul(a Element, scalar g.Element) Element
- func Sqrt(x Element) (Element, bool)
- func Square(a Element) Element
- func Sub(a, b Element) Element
- func Triple(a Element) Element
- type NumericalElement
Constants ¶
View Source
const Bytes = g.Bytes * 5
Variables ¶
Functions ¶
Types ¶
type Element ¶
func CanonicalSqrt ¶
func ExpPowerOf2 ¶
func FromUint64 ¶
func FromUint64Array ¶
func InverseOrZero ¶
func RepeatedFrobenius ¶
func (Element) ToBasefieldArray ¶
func (Element) ToLittleEndianBytes ¶
func (Element) ToUint64Array ¶
type NumericalElement ¶
type NumericalElement [5]uint64
Click to show internal directories.
Click to hide internal directories.