Documentation ¶
Index ¶
- Variables
- func Address(input interface{}) []byte
- func AddressArray(input interface{}) []byte
- func BigPow(a, b int64) *big.Int
- func Bool(input interface{}) []byte
- func BoolArray(input interface{}) []byte
- func Byte(input interface{}) []byte
- func Bytes1(input interface{}) []byte
- func Bytes10(input interface{}) []byte
- func Bytes11(input interface{}) []byte
- func Bytes12(input interface{}) []byte
- func Bytes13(input interface{}) []byte
- func Bytes14(input interface{}) []byte
- func Bytes15(input interface{}) []byte
- func Bytes16(input interface{}) []byte
- func Bytes17(input interface{}) []byte
- func Bytes18(input interface{}) []byte
- func Bytes19(input interface{}) []byte
- func Bytes2(input interface{}) []byte
- func Bytes20(input interface{}) []byte
- func Bytes21(input interface{}) []byte
- func Bytes22(input interface{}) []byte
- func Bytes23(input interface{}) []byte
- func Bytes24(input interface{}) []byte
- func Bytes25(input interface{}) []byte
- func Bytes26(input interface{}) []byte
- func Bytes27(input interface{}) []byte
- func Bytes28(input interface{}) []byte
- func Bytes29(input interface{}) []byte
- func Bytes3(input interface{}) []byte
- func Bytes30(input interface{}) []byte
- func Bytes31(input interface{}) []byte
- func Bytes32(input interface{}) []byte
- func Bytes4(input interface{}) []byte
- func Bytes5(input interface{}) []byte
- func Bytes6(input interface{}) []byte
- func Bytes7(input interface{}) []byte
- func Bytes8(input interface{}) []byte
- func Bytes9(input interface{}) []byte
- func ConcatByteSlices(arrays ...[]byte) []byte
- func Int128(input interface{}) []byte
- func Int128Array(input interface{}) []byte
- func Int16(input interface{}) []byte
- func Int16Array(input interface{}) []byte
- func Int256(input interface{}) []byte
- func Int256Array(input interface{}) []byte
- func Int32(input interface{}) []byte
- func Int32Array(input interface{}) []byte
- func Int64(input interface{}) []byte
- func Int64Array(input interface{}) []byte
- func Int8(input interface{}) []byte
- func Int8Array(input interface{}) []byte
- func LeftPadBytes(slice []byte, l int) []byte
- func Pack(types []string, values []interface{}) []byte
- func PaddedBigBytes(bigint *big.Int, n int) []byte
- func ReadBits(bigint *big.Int, buf []byte)
- func RightPadBytes(slice []byte, l int) []byte
- func SoliditySHA3(data ...interface{}) []byte
- func SoliditySHA3WithPrefix(data []byte) []byte
- func String(input interface{}) []byte
- func StringArray(input interface{}) []byte
- func U256(x *big.Int) *big.Int
- func U256Bytes(n *big.Int) []byte
- func Uint128(input interface{}) []byte
- func Uint128Array(input interface{}) []byte
- func Uint16(input interface{}) []byte
- func Uint16Array(input interface{}) []byte
- func Uint256(input interface{}) []byte
- func Uint256Array(input interface{}) []byte
- func Uint32(input interface{}) []byte
- func Uint32Array(input interface{}) []byte
- func Uint64(input interface{}) []byte
- func Uint64Array(input interface{}) []byte
- func Uint8(input interface{}) []byte
- func Uint8Array(input interface{}) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MaxBig256 = new(big.Int).Set(tt256m1) MaxBig63 = new(big.Int).Sub(tt63, big.NewInt(1)) )
Various big integer limit values.
Functions ¶
func ConcatByteSlices ¶
ConcatByteSlices concat byte slices
func LeftPadBytes ¶
LeftPadBytes zero-pads slice to the left up to length l.
func PaddedBigBytes ¶
PaddedBigBytes encodes a big integer as a big-endian byte slice. The length of the slice is at least n bytes.
func ReadBits ¶
ReadBits encodes the absolute value of bigint as big-endian bytes. Callers must ensure that buf has enough space. If buf is too short the result will be incomplete.
func RightPadBytes ¶
RightPadBytes zero-pads slice to the right up to length l.
func SoliditySHA3WithPrefix ¶
SoliditySHA3WithPrefix solidity sha3 with prefix
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.