m31

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const P = 0x7fffffff

Variables

View Source
var Pbig = big.NewInt(P)
View Source
var ScalarField = Pbig

Functions

This section is empty.

Types

type Field

type Field struct{}

func (*Field) Add

func (engine *Field) Add(a, b constraint.Element) constraint.Element

func (*Field) Field

func (engine *Field) Field() *big.Int

func (*Field) FieldBitLen

func (engine *Field) FieldBitLen() int

func (*Field) FromInterface

func (engine *Field) FromInterface(i interface{}) constraint.Element

func (*Field) Inverse

func (engine *Field) Inverse(a constraint.Element) (constraint.Element, bool)

func (*Field) IsOne

func (engine *Field) IsOne(a constraint.Element) bool

func (*Field) Mul

func (engine *Field) Mul(a, b constraint.Element) constraint.Element

func (*Field) Neg

func (engine *Field) Neg(a constraint.Element) constraint.Element

func (*Field) One

func (engine *Field) One() constraint.Element

func (*Field) SerializedLen

func (engine *Field) SerializedLen() int

func (*Field) String

func (engine *Field) String(a constraint.Element) string

func (*Field) Sub

func (engine *Field) Sub(a, b constraint.Element) constraint.Element

func (*Field) ToBigInt

func (engine *Field) ToBigInt(c constraint.Element) *big.Int

func (*Field) Uint64

func (engine *Field) Uint64(a constraint.Element) (uint64, bool)

Jump to

Keyboard shortcuts

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