graphenecommon.aio.wallet module¶
-
class
graphenecommon.aio.wallet.Wallet(*args, **kwargs)¶ Bases:
graphenecommon.wallet.WalletThe wallet is meant to maintain access to private keys for your accounts. It either uses manually provided private keys or uses a SQLite database managed by storage.py.
Parameters: keys (array,dict,string) – Predefine the wif keys to shortcut the wallet database Note
Wallet should be instantiated synchroously e.g.
w = Wallet()
Three wallet operation modes are possible:
- Wallet Database: Here, the library loads the keys from the
locally stored wallet SQLite database (see
storage.py). - Providing Keys: Here, you can provide the keys for
your accounts manually. All you need to do is add the wif
keys for the accounts you want to use as a simple array
using the
keysparameter to your blockchain instance. - Force keys: This more is for advanced users and
requires that you know what you are doing. Here, the
keysparameter is a dictionary that overwrite theactive,owner,postingormemokeys for any account. This mode is only used for foreign signatures!
-
getAccountFromPublicKey(pub)¶ Obtain the first account name from public key
-
getAccounts()¶ Return all accounts installed in the wallet database
-
getAccountsFromPublicKey(pub)¶ Obtain all accounts associated with a public key
-
getActiveKeyForAccount(name)¶ Obtain owner Active Key for an account from the wallet database
-
getMemoKeyForAccount(name)¶ Obtain owner Memo Key for an account from the wallet database
-
getOwnerKeyForAccount(name)¶ Obtain owner Private Key for an account from the wallet database
- Wallet Database: Here, the library loads the keys from the
locally stored wallet SQLite database (see