goldilocks

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Bytes = 8

Variables

This section is empty.

Functions

func ArrayToLittleEndianBytes

func ArrayToLittleEndianBytes(e []Element) []byte

func Equals

func Equals(a, b *Element) bool

func Modulus

func Modulus() uint64

func ToLittleEndianBytes

func ToLittleEndianBytes(e ...Element) []byte

func ToString

func ToString(e ...Element) string

Types

type Element

type Element = g.Element

func Add

func Add(elems ...Element) Element

func ArrayFromCanonicalLittleEndianBytes

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

func DeepCopy

func DeepCopy(source *Element) Element

func FromBool

func FromBool(value bool) Element

func FromCanonicalLittleEndianBytes

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

func FromInt64

func FromInt64(value int64) Element

func FromInt64Abs

func FromInt64Abs(value int64) Element

func FromUint32

func FromUint32(value uint32) Element

func FromUint64

func FromUint64(value uint64) Element

func Mul

func Mul(elems ...*Element) Element

func Neg

func Neg(e Element) Element

func NegOne

func NegOne() *Element

func One

func One() Element

func Powers

func Powers(e *Element, count int) []Element

Powers starting from 1

func RandArray

func RandArray(count int) []Element

func Sample

func Sample() Element

func Sqrt

func Sqrt(elem *Element) *Element

func Sub

func Sub(a, b *Element) Element

func Zero

func Zero() Element

Jump to

Keyboard shortcuts

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