keystore

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL