Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitKeymanagerConfig ¶
type InitKeymanagerConfig struct { ListenForChanges bool Web3SignerConfig *remoteweb3signer.SetupConfig }
InitKeymanagerConfig defines configuration options for initializing a keymanager.
type Wallet ¶
type Wallet interface { // Methods to retrieve wallet and accounts metadata. AccountsDir() string // Method to retrieve wallet directory. Dir() string Password() string // Read methods for important wallet and accounts-related files. ReadFileAtPath(ctx context.Context, filePath string, fileName string) ([]byte, error) // Write methods to persist important wallet and accounts-related files to disk. WriteFileAtPath(ctx context.Context, pathName string, fileName string, data []byte) (bool, error) // Method for initializing a new keymanager. InitializeKeymanager(ctx context.Context, cfg InitKeymanagerConfig) (keymanager.IKeymanager, error) // Method for returning keymanager kind. KeymanagerKind() keymanager.Kind }
Wallet defines a struct which has capabilities and knowledge of how to read and write important accounts-related files to the filesystem. Useful for keymanagers to have persistent capabilities for accounts on-disk.
Click to show internal directories.
Click to hide internal directories.