finitefield

package
v0.0.0-...-6255ad7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Order *big.Int
}

func NewField

func NewField(order *big.Int) Field

func (Field) NewInt

func (f Field) NewInt(v *big.Int) *FpInt

func (Field) One

func (f Field) One() *FpInt

func (Field) Zero

func (f Field) Zero() *FpInt

type FpInt

type FpInt struct {
	Value *big.Int
	Order *big.Int
}

func NewFpInt

func NewFpInt(v, order *big.Int) *FpInt

func (*FpInt) Add

func (k *FpInt) Add(a, b *FpInt) *FpInt

func (*FpInt) ModInv

func (k *FpInt) ModInv(a *FpInt) *FpInt

func (*FpInt) Mul

func (k *FpInt) Mul(a, b *FpInt) *FpInt

func (*FpInt) Sub

func (k *FpInt) Sub(a, b *FpInt) *FpInt

Jump to

Keyboard shortcuts

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