Documentation
¶
Index ¶
- Variables
- func EtherToWei(eth *big.Int) *big.Int
- func FloatEtherToWei(eth *big.Float) *big.Int
- func IsStringAddress(address string) bool
- func LoadEthKeyFromFile(path string, auth string) (*keystore.Key, error)
- func NewEthRandomKey() (*keystore.Key, error)
- func ParseBigFloat(value string) (*big.Float, error)
- func PrivateKeyStringToKey(pkString string) (*keystore.Key, error)
- func SaveEthKeyToFile(key *keystore.Key, path string, auth string) error
- func VerifyEcRecover(payload, sig []byte, address common.Address) error
- func VerifySign(payload, sig []byte, address common.Address) error
- func VerifySignNoRecoverId(payload, sig []byte, address common.Address) error
- func WeiToEther(eth *big.Int) *big.Int
- func WeiToFloatEther(eth *big.Int) *big.Float
Constants ¶
This section is empty.
Variables ¶
View Source
var AddressRegexp = regexp.MustCompile("^0x[0-9a-fA-F]{40}$")
View Source
var ErrInvalidSignatureLength = fmt.Errorf("signature must be 65 bytes long")
Functions ¶
func FloatEtherToWei ¶ added in v0.2.0
FloatEtherToWei formats Eth value argument to Wei big.Float
func IsStringAddress ¶
func NewEthRandomKey ¶
func ParseBigFloat ¶ added in v0.2.0
ParseBigFloat parse string value to big.Float
func VerifySignNoRecoverId ¶ added in v0.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.