Versions in this module Expand all Collapse all v1 v1.10.3 Dec 16, 2024 v1.10.2 Dec 15, 2024 Changes in this version + const AddressLength + const HashLength + var Bech32AddressHRP = "itc" + func AddressToBech32(addr ethCommon.Address) (string, error) + func Bech32ToAddress(b32 string) (addr ethCommon.Address, err error) + func BuildBech32Addr(hrp string, addr ethCommon.Address) (string, error) + func IsBech32Address(s string) bool + func MustAddressToBech32(addr ethCommon.Address) string + func MustBech32ToAddress(b32 string) ethCommon.Address + func MustBuildBech32Addr(hrp string, addr ethCommon.Address) string + func MustGeneratePrivateKey() *ecdsa.PrivateKey + func ParseAddr(s string) (ethCommon.Address, error) + func ParseBech32Addr(b32 string, hrp *string, addr *ethCommon.Address) error + type Address [AddressLength]byte + func BigToAddress(b *big.Int) Address + func BytesToAddress(b []byte) Address + func HexToAddress(s string) Address + func (a *Address) Scan(src interface{}) error + func (a *Address) SetBytes(b []byte) + func (a *Address) UnmarshalJSON(input []byte) error + func (a *Address) UnmarshalText(input []byte) error + func (a Address) Bech32() string + func (a Address) Big() *big.Int + func (a Address) Bytes() []byte + func (a Address) Format(s fmt.State, c rune) + func (a Address) Hash() Hash + func (a Address) MarshalText() ([]byte, error) + func (a Address) String() string + func (a Address) Value() (driver.Value, error) + type Hash [HashLength]byte + func BigToHash(b *big.Int) Hash + func BytesToHash(b []byte) Hash + func HexToHash(s string) Hash + func (h *Hash) Scan(src interface{}) error + func (h *Hash) SetBytes(b []byte) + func (h *Hash) UnmarshalJSON(input []byte) error + func (h *Hash) UnmarshalText(input []byte) error + func (h Hash) Big() *big.Int + func (h Hash) Bytes() []byte + func (h Hash) Format(s fmt.State, c rune) + func (h Hash) Generate(rand *rand.Rand, size int) reflect.Value + func (h Hash) Hex() string + func (h Hash) MarshalText() ([]byte, error) + func (h Hash) String() string + func (h Hash) TerminalString() string + func (h Hash) Value() (driver.Value, error) + type UnprefixedAddress Address + func (a *UnprefixedAddress) UnmarshalText(input []byte) error + func (a UnprefixedAddress) MarshalText() ([]byte, error) + type UnprefixedHash Hash + func (h *UnprefixedHash) UnmarshalText(input []byte) error + func (h UnprefixedHash) MarshalText() ([]byte, error)