@celo/keystores"keystore-wallet-wrapper"KeystoreWalletWrapper

Class: KeystoreWalletWrapper

Convenience wrapper of the LocalWallet to connect to a keystore

Hierarchy

  • KeystoreWalletWrapper

Index

Constructors

Methods

Constructors

constructor

+ new KeystoreWalletWrapper(keystore: KeystoreBase): KeystoreWalletWrapper

Defined in keystore-wallet-wrapper.ts:9

Parameters:

Name Type
keystore KeystoreBase

Returns: KeystoreWalletWrapper

Methods

getKeystore

getKeystore(): KeystoreBase

Defined in keystore-wallet-wrapper.ts:25

Returns: KeystoreBase


getLocalWallet

getLocalWallet(): LocalWallet

Defined in keystore-wallet-wrapper.ts:21

Returns: LocalWallet


importPrivateKey

importPrivateKey(privateKey: string, passphrase: string): Promise‹void›

Defined in keystore-wallet-wrapper.ts:16

Parameters:

Name Type
privateKey string
passphrase string

Returns: Promise‹void›


lockAccount

lockAccount(address: string): Promise‹void›

Defined in keystore-wallet-wrapper.ts:34

Parameters:

Name Type
address string

Returns: Promise‹void›


unlockAccount

unlockAccount(address: string, passphrase: string): Promise‹void›

Defined in keystore-wallet-wrapper.ts:29

Parameters:

Name Type
address string
passphrase string

Returns: Promise‹void›