Documentation
¶
Index ¶
- func BytesToHex(bytes []byte) string
- func Float64ToU8(u float64) (uint8, error)
- func IntToU16(u int) (uint16, error)
- func IntToU32(u int) (uint32, error)
- func IntToU64(u int) (uint64, error)
- func IntToU8(u int) (uint8, error)
- func IntToUBigInt(u int) (*big.Int, error)
- func ParseHex(hexStr string) ([]byte, error)
- func Sha3256Hash(bytes [][]byte) []byte
- func StrToBigInt(val string) (*big.Int, error)
- func StrToUint64(s string) (uint64, error)
- func Uint32ToU8(u uint32) (uint8, error)
- func UintToU16(u uint) (uint16, error)
- func UintToU32(u uint) (uint32, error)
- func UintToU8(u uint) (uint8, error)
- func UintToUBigInt(u uint) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToHex ¶
BytesToHex converts a byte slice to a hex string with a leading 0x
func Float64ToU8 ¶ added in v1.6.2
func Sha3256Hash ¶
Sha3256Hash hashes the input bytes using SHA3-256
func StrToBigInt ¶
StrToBigInt converts a string to a big.Int for u128 and u256 values
func StrToUint64 ¶
StrToUint64 converts a string to a uint64
func Uint32ToU8 ¶ added in v1.6.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.