Documentation
¶
Index ¶
- func BalanceIsValid(balance *big.Int) (bool, error)
- func BalanceMustBeValid(balance *big.Int) bool
- func GetAddressFromPrivateKey(privateKey *ecdsa.PrivateKey) (common.Address, error)
- func IsValidAddress(iaddress interface{}) bool
- func IsZeroAddress(iaddress interface{}) bool
- func MustGetAddressFromPrivateKey(privateKey *ecdsa.PrivateKey) common.Address
- func SafeBalanceIsValid(balance *big.Int) bool
- func ValidateAddress(address interface{}) bool
- func ValidateAddresses(addresses []interface{}) ([]interface{}, []interface{}, bool)
- type PrivateAddress
- type RawAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BalanceIsValid ¶
BalanceIsValid will return an error and a boolean
func BalanceMustBeValid ¶
BalanceMustBeValid will panic in case there is an error when processing the balance
func GetAddressFromPrivateKey ¶
func GetAddressFromPrivateKey( privateKey *ecdsa.PrivateKey, ) (common.Address, error)
func IsValidAddress ¶
func IsValidAddress(iaddress interface{}) bool
func IsZeroAddress ¶
func IsZeroAddress(iaddress interface{}) bool
func MustGetAddressFromPrivateKey ¶
func MustGetAddressFromPrivateKey(privateKey *ecdsa.PrivateKey) common.Address
func SafeBalanceIsValid ¶
SafeBalanceIsValid Use this function when you want to behave with a normal bool check
func ValidateAddress ¶
func ValidateAddress(address interface{}) bool
func ValidateAddresses ¶
func ValidateAddresses(addresses []interface{}) ( []interface{}, []interface{}, bool, )
Types ¶
type PrivateAddress ¶
type PrivateAddress string
func (PrivateAddress) IsValid ¶
func (a PrivateAddress) IsValid() bool
func (*PrivateAddress) ToECDSA ¶
func (a *PrivateAddress) ToECDSA() (pk *ecdsa.PrivateKey, err error)
func (PrivateAddress) ToString ¶
func (a PrivateAddress) ToString() string
type RawAddress ¶
type RawAddress string
RawAddress Used for declaring ethereum addresses that is not common.Address type
func (RawAddress) IsValid ¶
func (a RawAddress) IsValid() bool
func (RawAddress) ToCommonAddress ¶
func (a RawAddress) ToCommonAddress() common.Address
func (RawAddress) ToString ¶
func (a RawAddress) ToString() string
Click to show internal directories.
Click to hide internal directories.