hdkeystore

package
v0.0.0-...-70bf292 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeystoreAdapter

type KeystoreAdapter interface {
	GenerateMnemonic() (string, error)
	OpenWallet(mnemonic *sstring.SecureString, path string) (accounts.Account, *hdwallet.Wallet, error)
	OpenWalletWithPassphrase(mnemonic *sstring.SecureString, passphrase *sstring.SecureString, path string) (accounts.Account, *hdwallet.Wallet, error)
	EncryptWallet(mnemonic *sstring.SecureString, path string, password *sstring.SecureString) ([]byte, error)
	DecryptWallet(encryptedWalletBytes []byte, password *sstring.SecureString) (accounts.Account, *hdwallet.Wallet, error)
	PrivateKeyFromOpenWallet(mnemonic *sstring.SecureString, path string) (*ecdsa.PrivateKey, error)
	MnemonicFromEncryptedWallet(encryptedWalletBytes []byte, password *sstring.SecureString) (*sstring.SecureString, string, error)
}

func NewAdapter

func NewAdapter() KeystoreAdapter

Jump to

Keyboard shortcuts

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