Documentation ¶
Overview ¶
Package common contains various helper functions.
Index ¶
- func BigToAddress(b *big.Int) common.Address
- func BigToHash(b *big.Int) common.Hash
- func Bytes2Hex(d []byte) string
- func CopyBytes(b []byte) (copiedBytes []byte)
- func EmptyHash(h common.Hash) bool
- func FromHex(s string) []byte
- func HasHexPrefix(str string) bool
- func Hex2Bytes(str string) []byte
- func Hex2BytesFixed(str string, flen int) []byte
- func HexToAddress(s string) common.Address
- func HexToHash(s string) common.Hash
- func IsHex(str string) bool
- func LeftPadBytes(slice []byte, l int) []byte
- func RightPadBytes(slice []byte, l int) []byte
- func StringToAddress(s string) common.Address
- func StringToHash(s string) common.Hash
- func ToHex(b []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasHexPrefix ¶
func Hex2BytesFixed ¶
func HexToAddress ¶
func LeftPadBytes ¶
func RightPadBytes ¶
func StringToAddress ¶
func StringToHash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.