Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeystoreWrapper ¶ added in v0.3.0
type KeystoreWrapper struct {
// contains filtered or unexported fields
}
keystore encapsulates a keystore directory and the underlying Ethereum keystore.
func NewKeyStore ¶ added in v0.3.0
func NewKeyStore(dir string) *KeystoreWrapper
NewKeyStore initializes a new Ethereum keystore and the directory where it's stored.
func (*KeystoreWrapper) Accounts ¶ added in v0.3.0
func (kst *KeystoreWrapper) Accounts() []accounts.Account
Accounts returns all key files present in the directory.
func (*KeystoreWrapper) ImportPrivateKey ¶ added in v0.3.0
func (kst *KeystoreWrapper) ImportPrivateKey(privateKeyHex string, password string, overwrite bool) error
ImportPrivateKey imports a private key into the keystore, optionally overwriting an existing account.
func (*KeystoreWrapper) UnsafeDeleteAccount ¶ added in v0.3.0
func (kst *KeystoreWrapper) UnsafeDeleteAccount(address common.Address) error
UnsafeDeleteAccount deletes an Ethereum account without requiring its password. TODO: Probably will be removed but leaving it for now
Click to show internal directories.
Click to hide internal directories.