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
Click to show internal directories.
Click to hide internal directories.