![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <keystore.h>
Public Member Functions | |
bool | AddKeyPubKey (const CKey &key, const CPubKey &pubkey) |
Add a key to the store. More... | |
bool | GetPubKey (const CKeyID &address, CPubKey &vchPubKeyOut) const |
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 |
bool | GetHDChain (CHDChain &hdChainRet) const |
![]() | |
virtual | ~CKeyStore () |
virtual bool | AddKey (const CKey &key) |
Protected Attributes | |
KeyMap | mapKeys |
WatchKeyMap | mapWatchKeys |
ScriptMap | mapScripts |
WatchOnlySet | setWatchOnly |
CHDChain | hdChain |
![]() | |
CCriticalSection | cs_KeyStore |
Basic key store, that keeps keys in an address->secret map
Definition at line 56 of file keystore.h.
|
virtual |
Support for BIP 0013 : see https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki.
Implements CKeyStore.
Reimplemented in CWallet.
Definition at line 41 of file keystore.cpp.
Referenced by CWallet::AddCScript(), CWallet::LoadCScript(), MutateTxSign(), and signrawtransaction().
Add a key to the store.
Implements CKeyStore.
Reimplemented in CWallet, and CCryptoKeyStore.
Definition at line 34 of file keystore.cpp.
Referenced by CCryptoKeyStore::AddKeyPubKey().
|
virtual |
Support for Watch-only addresses.
Implements CKeyStore.
Reimplemented in CWallet.
Definition at line 85 of file keystore.cpp.
Referenced by CWallet::AddWatchOnly(), and CWallet::LoadWatchOnly().
bool CBasicKeyStore::GetHDChain | ( | CHDChain & | hdChainRet | ) | const |
Definition at line 117 of file keystore.cpp.
Implements CKeyStore.
Reimplemented in CWallet, and CCryptoKeyStore.
Definition at line 91 of file keystore.h.
Referenced by CCryptoKeyStore::GetKey(), and GetPubKey().
|
inlinevirtual |
Implements CKeyStore.
Reimplemented in CCryptoKeyStore.
Definition at line 78 of file keystore.h.
Referenced by CCryptoKeyStore::GetKeys().
Implements CKeyStore.
Reimplemented in CWallet, and CCryptoKeyStore.
Definition at line 18 of file keystore.cpp.
Referenced by CCryptoKeyStore::GetPubKey().
|
virtual |
|
inlinevirtual |
Check whether a key corresponding to a given address is present in the store.
Implements CKeyStore.
Reimplemented in CWallet, and CCryptoKeyStore.
Definition at line 69 of file keystore.h.
Referenced by CCryptoKeyStore::HaveKey().
|
virtual |
|
virtual |
Implements CKeyStore.
Definition at line 111 of file keystore.cpp.
|
virtual |
Implements CKeyStore.
Reimplemented in CWallet.
Definition at line 95 of file keystore.cpp.
Referenced by CWallet::RemoveWatchOnly().
|
protected |
Definition at line 64 of file keystore.h.
Referenced by CCryptoKeyStore::EncryptHDChain(), GetHDChain(), CCryptoKeyStore::GetHDChain(), and CCryptoKeyStore::SetHDChain().
|
protected |
Definition at line 59 of file keystore.h.
Referenced by AddKeyPubKey(), CCryptoKeyStore::EncryptKeys(), GetKey(), GetKeys(), HaveKey(), and CCryptoKeyStore::SetCrypted().
|
protected |
Definition at line 61 of file keystore.h.
Referenced by AddCScript(), GetCScript(), and HaveCScript().
|
protected |
Definition at line 60 of file keystore.h.
Referenced by AddWatchOnly(), GetPubKey(), and RemoveWatchOnly().
|
protected |
Definition at line 62 of file keystore.h.
Referenced by AddWatchOnly(), HaveWatchOnly(), and RemoveWatchOnly().