goldilocks_quintic_extension

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Bytes = g.Bytes * 5

Variables

View Source
var (
	FP5_D = 5

	FP5_ZERO = Element{g.Zero(), g.Zero(), g.Zero(), g.Zero(), g.Zero()}
	FP5_ONE  = Element{g.One(), g.Zero(), g.Zero(), g.Zero(), g.Zero()}
	FP5_TWO  = FromF(g.FromUint64(2))

	FP5_W        = g.FromUint64(3)
	FP5_DTH_ROOT = g.FromUint64(1041288259238279555)
)

Functions

func Equals

func Equals(a, b Element) bool

func IsZero

func IsZero(e Element) bool

func Legendre

func Legendre(x Element) g.Element

func Sgn0

func Sgn0(x Element) bool

Types

type Element

type Element [5]g.Element

func Add

func Add(a, b Element) Element

func CanonicalSqrt

func CanonicalSqrt(x Element) (Element, bool)

func Div

func Div(a, b Element) Element

func Double

func Double(a Element) Element

func ExpPowerOf2

func ExpPowerOf2(x Element, power int) Element

func Frobenius

func Frobenius(x Element) Element

func FromCanonicalLittleEndianBytes

func FromCanonicalLittleEndianBytes(in []byte) (Element, error)

func FromF

func FromF(elem g.Element) Element

func FromUint64

func FromUint64(a uint64) Element

func FromUint64Array

func FromUint64Array(elems [5]uint64) Element

func InverseOrZero

func InverseOrZero(a Element) Element

func Mul

func Mul(a, b Element) Element

func Neg

func Neg(e Element) Element

func RepeatedFrobenius

func RepeatedFrobenius(x Element, count int) Element

func Sample

func Sample() Element

func ScalarMul

func ScalarMul(a Element, scalar g.Element) Element

func Sqrt

func Sqrt(x Element) (Element, bool)

func Square

func Square(a Element) Element

func Sub

func Sub(a, b Element) Element

func Triple

func Triple(a Element) Element

func (Element) ToBasefieldArray

func (e Element) ToBasefieldArray() [5]g.Element

func (Element) ToLittleEndianBytes

func (e Element) ToLittleEndianBytes() []byte

func (*Element) ToString

func (e *Element) ToString() string

func (Element) ToUint64Array

func (e Element) ToUint64Array() [5]uint64

type NumericalElement

type NumericalElement [5]uint64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL