ebigint

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NBigInt

type NBigInt struct {
	*big.Int
	// contains filtered or unexported fields
}

func FromBytes

func FromBytes(buf []byte) *NBigInt

func FromHex added in v0.0.2

func FromHex(str string) *NBigInt

func NewNBigInt

func NewNBigInt(v int64) *NBigInt

func ToNBigInt

func ToNBigInt(b *big.Int) *NBigInt

func (*NBigInt) Eq

func (this *NBigInt) Eq(e *NBigInt) bool

func (*NBigInt) ForceRed

func (this *NBigInt) ForceRed(r *Red) *NBigInt

func (*NBigInt) FromRed

func (this *NBigInt) FromRed() *NBigInt

func (*NBigInt) GetRed

func (this *NBigInt) GetRed() *Red

func (*NBigInt) Red

func (this *NBigInt) Red(m *big.Int) *Red

func (*NBigInt) RedAdd

func (this *NBigInt) RedAdd(e *NBigInt) *NBigInt

func (*NBigInt) RedExp

func (this *NBigInt) RedExp(e *big.Int) *NBigInt

func (*NBigInt) RedIAdd

func (this *NBigInt) RedIAdd(e *NBigInt) *NBigInt

func (*NBigInt) RedInvm

func (this *NBigInt) RedInvm() *NBigInt

func (*NBigInt) RedMul

func (this *NBigInt) RedMul(e *NBigInt) *NBigInt

func (*NBigInt) RedNeg

func (this *NBigInt) RedNeg() *NBigInt

func (*NBigInt) RedSub

func (this *NBigInt) RedSub(e *NBigInt) *NBigInt

func (*NBigInt) String

func (this *NBigInt) String() string

func (*NBigInt) ToRed

func (this *NBigInt) ToRed(r *Red) *NBigInt

type Red

type Red struct {
	*big.Int
}

func NewRed

func NewRed(b *big.Int) *Red

func (*Red) ConvertTo

func (this *Red) ConvertTo(b *NBigInt) *NBigInt

Jump to

Keyboard shortcuts

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