Documentation ¶
Index ¶
- func GetKeyForAddress(address common.Address, password string) (*keystore.Key, error)
- func GetWalletDir() string
- func NewKeystoreAccount(password string) (common.Address, error)
- func SetConfig(walletConfig WalletConfig)
- func Sign(msg []byte, pk *ecdsa.PrivateKey) (common.Signature, error)
- func SignForAddress(msg []byte, address common.Address, password string) (common.Signature, error)
- func VerifyAndRecoverAccount(msg []byte, signature common.Signature) (common.Address, error)
- type WalletConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyForAddress ¶
func GetWalletDir ¶
func GetWalletDir() string
func SetConfig ¶
func SetConfig(walletConfig WalletConfig)
func SignForAddress ¶
Types ¶
type WalletConfig ¶
type WalletConfig struct {
DataDir string `yaml:"datadir,omitempty"`
}
var Config WalletConfig = Defaults()
func Defaults ¶
func Defaults() WalletConfig
Click to show internal directories.
Click to hide internal directories.