package
1.15.2
Repository: https://github.com/ethereum/go-ethereum.git
Documentation: pkg.go.dev

# Functions

BigPow returns a ** b as a big integer.
MustParseBig256 parses s as a 256 bit big integer and panics if the string is invalid.
MustParseUint64 parses s as an integer and panics if the string is invalid.
NewDecimal256 creates a new Decimal256.
NewHexOrDecimal256 creates a new HexOrDecimal256.
PaddedBigBytes encodes a big integer as a big-endian byte slice.
ParseBig256 parses s as a 256 bit integer in decimal or hexadecimal syntax.
ParseUint64 parses s as an integer in decimal or hexadecimal syntax.
ReadBits encodes the absolute value of bigint as big-endian bytes.
SafeAdd returns x+y and checks for overflow.
SafeMul returns x*y and checks for overflow.
SafeSub returns x-y and checks for overflow.
U256 encodes x as a 256 bit two's complement number.
U256Bytes converts a big Int into a 256bit EVM number.

# Variables

Various big integer limit values.

# Type aliases

Decimal256 unmarshals big.Int as a decimal string.
HexOrDecimal256 marshals big.Int as hex or decimal.
HexOrDecimal64 marshals uint64 as hex or decimal.