common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Big0  = big.NewInt(0)
	Big1  = big.NewInt(1)
	Big32 = big.NewInt(32)
)

Functions

func BigMax

func BigMax(x, y *big.Int) *big.Int

func BigMin

func BigMin(x, y *big.Int) *big.Int

func BigPow

func BigPow(a, b int64) *big.Int

func CalcMemSize

func CalcMemSize(off, l *big.Int) *big.Int

func Exp

func Exp(base, exponent *big.Int) *big.Int

func GetData

func GetData(data []byte, start, size *big.Int) []byte

func LeftPadBytes

func LeftPadBytes(slice []byte, l int) []byte

func PaddedBigBytes

func PaddedBigBytes(bigint *big.Int, n int) []byte

func ReadBits

func ReadBits(bigint *big.Int, buf []byte)

func RightPadBytes

func RightPadBytes(slice []byte, l int) []byte

func S256

func S256(x *big.Int) *big.Int

func U256

func U256(x *big.Int) *big.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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