package
0.0.6
Repository: https://github.com/shudolab/core-geth.git
Documentation: pkg.go.dev

# Functions

BigMax returns the larger of x or y.
BigMin returns the smaller of x or y.
BigPow returns a ** b as a big integer.
Byte returns the byte at position n, with the supplied padlength in Little-Endian encoding.
Exp implements exponentiation by squaring.
FirstBitSet returns the index of the first 1 bit in v, counting from LSB.
MustParseBig256 parses s as a 256 bit big integer and panics if the string is invalid.
MustParseUint256 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.
NewDecimalUint256 creates a new DecimalUint256.
NewHexOrDecimal256 creates a new HexOrDecimal256.
NewHexOrDecimalUint256 creates a new HexOrDecimalUint256.
PaddedBigBytes encodes a big integer as a big-endian byte slice.
ParseBig256 parses s as a 256 bit integer in decimal or hexadecimal syntax.
ParseUint256 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.
S256 interprets x as a two's complement number.
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 as a 256 bit two's complement number.
U256Bytes converts a big Int into a 256bit EVM number.
Uint256Max returns the larger of x or y.
Uint256Min returns the smaller of x or y.
Uint256Pow returns a ** b as a big integer.

# Constants

Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.
Integer limit values.

# Variables

Various big integer limit values.
Various big integer limit values.

# Type aliases

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