evm

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagNewEVMPassphrase = "evm.new-passphrase"
)

Variables

This section is empty.

Functions

func Add

func Add(serviceName string) *cobra.Command

func Delete

func Delete(serviceName string) *cobra.Command

func GetAccountFromStore

func GetAccountFromStore(ks *keystore.KeyStore, evmAddr string) (accounts.Account, error)

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 GetBIP39Passphrase() (string, error)

func GetNewPassphrase

func GetNewPassphrase() (string, error)

func GetPassphrase

func GetPassphrase() (string, error)

func Import

func Import(serviceName string) *cobra.Command

func ImportECDSA

func ImportECDSA(serviceName string) *cobra.Command

func ImportFile

func ImportFile(serviceName string) *cobra.Command

func ImportMnemonic

func ImportMnemonic(serviceName string) *cobra.Command

func List

func List(serviceName string) *cobra.Command

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.

func Root

func Root(serviceName string) *cobra.Command

func Update

func Update(serviceName string) *cobra.Command

Types

type KeysConfig

type KeysConfig struct {
	*base.Config
	// contains filtered or unexported fields
}

type KeysNewPassphraseConfig

type KeysNewPassphraseConfig struct {
	*base.Config
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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