Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BigIntToHex ¶
BigIntToHex returns the hex representation of the given big integer. The hex string is prefixed with "0x". Negative numbers are prefixed with "-0x".
func BytesToHex ¶
BytesToHex returns the hex representation of the given bytes. The hex string is always even-length and prefixed with "0x".
func Has0xPrefix ¶ added in v0.4.5
Has0xPrefix returns true if the given byte slice starts with "0x".
func HexToBigInt ¶
HexToBigInt returns the big integer representation of the given hex string. The hex string may be prefixed with "0x".
func HexToBytes ¶
HexToBytes returns the bytes representation of the given hex string. The number of hex digits must be even. The hex string may be prefixed with "0x".
func MustHexToBigInt ¶
func MustHexToBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.