Versions in this module Expand all Collapse all v1 v1.20.0 Jul 31, 2022 v1.11.0 Jul 27, 2022 Changes in this version + const MaxInt16 + const MaxInt32 + const MaxInt64 + const MaxInt8 + const MaxUint16 + const MaxUint32 + const MaxUint64 + const MaxUint8 + const MinInt16 + const MinInt32 + const MinInt64 + const MinInt8 + var MaxBig256 = new(big.Int).Set(tt256m1) + var MaxBig63 = new(big.Int).Sub(tt63, big.NewInt(1)) + func BigMax(x, y *big.Int) *big.Int + func BigMin(x, y *big.Int) *big.Int + func BigPow(a, b int64) *big.Int + func Byte(bigint *big.Int, padlength, n int) byte + func Exp(base, exponent *big.Int) *big.Int + func FirstBitSet(v *big.Int) int + func MustParseBig256(s string) *big.Int + func MustParseUint64(s string) uint64 + func PaddedBigBytes(bigint *big.Int, n int) []byte + func ParseBig256(s string) (*big.Int, bool) + func ParseUint64(s string) (uint64, bool) + func ReadBits(bigint *big.Int, buf []byte) + func S256(x *big.Int) *big.Int + func SafeAdd(x, y uint64) (uint64, bool) + func SafeMul(x, y uint64) (uint64, bool) + func SafeSub(x, y uint64) (uint64, bool) + func U256(x *big.Int) *big.Int + func U256Bytes(n *big.Int) []byte + type Decimal256 big.Int + func NewDecimal256(x int64) *Decimal256 + func (i *Decimal256) MarshalText() ([]byte, error) + func (i *Decimal256) String() string + func (i *Decimal256) UnmarshalText(input []byte) error + type HexOrDecimal256 big.Int + func NewHexOrDecimal256(x int64) *HexOrDecimal256 + func (i *HexOrDecimal256) MarshalText() ([]byte, error) + func (i *HexOrDecimal256) UnmarshalText(input []byte) error + type HexOrDecimal64 uint64 + func (i *HexOrDecimal64) UnmarshalText(input []byte) error + func (i HexOrDecimal64) MarshalText() ([]byte, error) Incompatible versions in this module v2.2.3+incompatible Jul 27, 2022 v2.0.2+incompatible Jul 27, 2022