Documentation ¶
Index ¶
- Constants
- func Add(serviceName string) *cobra.Command
- func Delete(serviceName string) *cobra.Command
- func GetAccountFromStore(ks *keystore.KeyStore, evmAddr string) (accounts.Account, error)
- func GetAccountFromStoreAndUnlockIt(ks *keystore.KeyStore, evmAddr string, evmPassphrase string) (accounts.Account, error)
- func GetBIP39Passphrase() (string, error)
- func GetNewPassphrase() (string, error)
- func GetPassphrase() (string, error)
- func Import(serviceName string) *cobra.Command
- func ImportECDSA(serviceName string) *cobra.Command
- func ImportFile(serviceName string) *cobra.Command
- func ImportMnemonic(serviceName string) *cobra.Command
- func List(serviceName string) *cobra.Command
- func MnemonicToPrivateKey(mnemonic string, passphrase string) (*ecdsa.PrivateKey, error)
- func Root(serviceName string) *cobra.Command
- func Update(serviceName string) *cobra.Command
- type KeysConfig
- type KeysNewPassphraseConfig
Constants ¶
View Source
const (
FlagNewEVMPassphrase = "evm.new-passphrase"
)
Variables ¶
This section is empty.
Functions ¶
func GetAccountFromStore ¶
GetAccountFromStore takes an EVM store and an EVM address and loads the corresponding account from it.
func GetAccountFromStoreAndUnlockIt ¶
func GetAccountFromStoreAndUnlockIt(ks *keystore.KeyStore, evmAddr string, evmPassphrase string) (accounts.Account, error)
GetAccountFromStoreAndUnlockIt takes an EVM store and an EVM address and loads the corresponding account from it then unlocks it.
func GetBIP39Passphrase ¶
func GetNewPassphrase ¶
func GetPassphrase ¶
func ImportECDSA ¶
func ImportFile ¶
func ImportMnemonic ¶
func MnemonicToPrivateKey ¶
func MnemonicToPrivateKey(mnemonic string, passphrase string) (*ecdsa.PrivateKey, error)
MnemonicToPrivateKey derives a private key from the provided mnemonic. It uses the default derivation path, geth.DefaultBaseDerivationPath, i.e. m/44'/60'/0'/0, to generate the first private key. The generated account is of path m/44'/60'/0'/0/0.
Types ¶
type KeysConfig ¶
type KeysNewPassphraseConfig ¶
Click to show internal directories.
Click to hide internal directories.