fp

package
v0.0.0-...-15cf0d5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseField2Adicity = 32
)
View Source
const Limbs = basefield.Limbs

Limbs is the number of 64-bit words needed to represent the field element.

Variables

This section is empty.

Functions

func BytesLE

func BytesLE(a Element) []byte

BytesLE returns the little-endian byte representation of a field element.

func MulBy5

func MulBy5(a *Element)

MulBy5 multiplies a field element by 5.

Types

type Element

type Element = basefield.Element

Element is a field element representing the basefield of the curve.

func BatchInvert

func BatchInvert(a []Element) []Element

BatchInvert computes the inverse of a slice of field elements.

func MinusOne

func MinusOne() Element

MinusOne returns the field element -1.

func One

func One() Element

One returns the field element 1.

func SqrtPrecomp

func SqrtPrecomp(x *Element) *Element

func Zero

func Zero() Element

Zero returns the field element 0.

Jump to

Keyboard shortcuts

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