keystore

package
v0.0.0-...-62e5099 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWalletInMemory

func CreateWalletInMemory(password *sstring.SecureString) (common.Address, []byte, error)

func OpenWalletFromMemory

func OpenWalletFromMemory(binaryData []byte, password *sstring.SecureString) (*keystore.Key, error)

OpenWalletFromMemory decrypts the given key JSON in memory using the provided password.

Types

type KeystoreAdapter

type KeystoreAdapter interface {
	CreateWallet(password *sstring.SecureString) (common.Address, []byte, error)
	OpenWallet(binaryData []byte, password *sstring.SecureString) (*keystore.Key, error)
}

func NewAdapter

func NewAdapter() KeystoreAdapter

Jump to

Keyboard shortcuts

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