![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Keystore which keeps the private keys encrypted. More...
#include <crypter.h>
Public Member Functions | |
| CCryptoKeyStore () | |
| bool | IsCrypted () const |
| bool | IsLocked () const |
| virtual bool | AddCryptedKey (const CPubKey &vchPubKey, const std::vector< unsigned char > &vchCryptedSecret) |
| bool | AddKeyPubKey (const CKey &key, const CPubKey &pubkey) |
| Add a key to the store. More... | |
| bool | HaveKey (const CKeyID &address) const |
| Check whether a key corresponding to a given address is present in the store. More... | |
| bool | GetKey (const CKeyID &address, CKey &keyOut) const |
| bool | GetPubKey (const CKeyID &address, CPubKey &vchPubKeyOut) const |
| void | GetKeys (std::set< CKeyID > &setAddress) const |
Public Member Functions inherited from CBasicKeyStore | |
| bool | AddKeyPubKey (const CKey &key, const CPubKey &pubkey) |
| Add a key to the store. More... | |
| bool | HaveKey (const CKeyID &address) const |
| Check whether a key corresponding to a given address is present in the store. More... | |
| void | GetKeys (std::set< CKeyID > &setAddress) const |
| bool | GetKey (const CKeyID &address, CKey &keyOut) const |
| virtual bool | AddCScript (const CScript &redeemScript) |
| Support for BIP 0013 : see https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki. More... | |
| virtual bool | HaveCScript (const CScriptID &hash) const |
| virtual bool | GetCScript (const CScriptID &hash, CScript &redeemScriptOut) const |
| virtual bool | AddWatchOnly (const CScript &dest) |
| Support for Watch-only addresses. More... | |
| virtual bool | RemoveWatchOnly (const CScript &dest) |
| virtual bool | HaveWatchOnly (const CScript &dest) const |
| virtual bool | HaveWatchOnly () const |
Public Member Functions inherited from CKeyStore | |
| virtual | ~CKeyStore () |
| virtual bool | AddKey (const CKey &key) |
Public Attributes | |
| boost::signals2::signal< void(CCryptoKeyStore *wallet)> | NotifyStatusChanged |
| Wallet status (encrypted, locked) changed. More... | |
Protected Member Functions | |
| bool | SetCrypted () |
| bool | EncryptKeys (CKeyingMaterial &vMasterKeyIn) |
| will encrypt previously unencrypted keys More... | |
| bool | EncryptHDChain (const CKeyingMaterial &vMasterKeyIn) |
| bool | DecryptHDChain (CHDChain &hdChainRet) const |
| bool | SetHDChain (const CHDChain &chain) |
| bool | SetCryptedHDChain (const CHDChain &chain) |
| bool | GetHDChain (CHDChain &hdChainRet) const |
Protected Attributes | |
| CKeyingMaterial | vMasterKey |
| CryptedKeyMap | mapCryptedKeys |
| CHDChain | cryptedHDChain |
Protected Attributes inherited from CBasicKeyStore | |
| KeyMap | mapKeys |
| ScriptMap | mapScripts |
| WatchOnlySet | setWatchOnly |
| MultiSigScriptSet | setMultiSig |
| CHDChain | hdChain |
Protected Attributes inherited from CKeyStore | |
| RecursiveMutex | cs_KeyStore |
Private Attributes | |
| bool | fUseCrypto |
| if fUseCrypto is true, mapKeys must be empty if fUseCrypto is false, vMasterKey must be empty More... | |
Keystore which keeps the private keys encrypted.
It derives from the basic key store, which is used if no encryption is active.
|
virtual |
Reimplemented in CWallet.
Definition at line 160 of file crypter.cpp.
Add a key to the store.
Implements CKeyStore.
Reimplemented in CWallet.
Definition at line 138 of file crypter.cpp.
|
protected |
Definition at line 287 of file crypter.cpp.
|
protected |
Definition at line 234 of file crypter.cpp.
|
protected |
will encrypt previously unencrypted keys
Definition at line 211 of file crypter.cpp.
|
protected |
Definition at line 358 of file crypter.cpp.
Implements CKeyStore.
Reimplemented in CWallet.
Definition at line 172 of file crypter.cpp.
|
inlinevirtual |
Reimplemented from CKeyStore.
Reimplemented in CWallet.
Definition at line 195 of file crypter.cpp.
|
inlinevirtual |
|
inline |
|
inline |
|
protected |
|
protected |
Definition at line 346 of file crypter.cpp.
|
protected |
Definition at line 334 of file crypter.cpp.
|
private |
|
protected |
| boost::signals2::signal<void(CCryptoKeyStore* wallet)> CCryptoKeyStore::NotifyStatusChanged |
|
protected |
1.8.17