Documentation ¶
Index ¶
- Variables
- func AddressToHex(addr common.Address) string
- func BytesToAddress(b []byte) common.Address
- func BytesToHash(b []byte) common.Hash
- func BytesToUint64(b []byte) (uint64, error)
- func DecodeHex(s string) ([]byte, error)
- func EncodeToHex(b []byte) string
- func HashToHex(h common.Hash) string
- func HexToAddress(s string) common.Address
- func HexToBytes(s string) ([]byte, error)
- func HexToHash(s string) common.Hash
- func HexToPrivateKey(s string) (*ecdsa.PrivateKey, error)
- func IsHexAddress(s string) bool
- func IsHexHash(s string) bool
- func StringToBigInt(s string) (*big.Int, error)
- func StringToUint64(s string) (uint64, error)
- func Uint64ToBytes(i uint64) []byte
- func Uint64ToString(i uint64) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidDecimalString = errors.New("invalid decimal string")
)
Functions ¶
func AddressToHex ¶
func BytesToAddress ¶
func BytesToHash ¶
func BytesToUint64 ¶
func EncodeToHex ¶
func HexToAddress ¶
func HexToBytes ¶
func HexToPrivateKey ¶
func HexToPrivateKey(s string) (*ecdsa.PrivateKey, error)
func IsHexAddress ¶
func StringToUint64 ¶ added in v0.3.0
func Uint64ToBytes ¶
func Uint64ToString ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.