Versions in this module Expand all Collapse all v1 v1.14.14 Nov 19, 2024 v1.14.13 Nov 19, 2024 Changes in this version + var MaxBig256 = new(big.Int).Set(tt256m1) + func BigPow(a, b int64) *big.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 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) UnmarshalJSON(input []byte) error + func (i *HexOrDecimal256) UnmarshalText(input []byte) error + type HexOrDecimal64 uint64 + func (i *HexOrDecimal64) UnmarshalJSON(input []byte) error + func (i *HexOrDecimal64) UnmarshalText(input []byte) error + func (i HexOrDecimal64) MarshalText() ([]byte, error)