Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
A virtual base class for key stores. More...
#include <keystore.h>
Public Member Functions | |
virtual | ~CKeyStore () |
virtual bool | AddKeyPubKey (const CKey &key, const CPubKey &pubkey)=0 |
Add a key to the store. More... | |
virtual bool | AddKey (const CKey &key) |
virtual bool | HaveKey (const CKeyID &address) const =0 |
Check whether a key corresponding to a given address is present in the store. More... | |
virtual bool | GetKey (const CKeyID &address, CKey &keyOut) const =0 |
virtual std::set< CKeyID > | GetKeys () const =0 |
virtual bool | GetPubKey (const CKeyID &address, CPubKey &vchPubKeyOut) const =0 |
virtual bool | AddCScript (const CScript &redeemScript)=0 |
Support for BIP 0013 : see https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki. More... | |
virtual bool | HaveCScript (const CScriptID &hash) const =0 |
virtual std::set< CScriptID > | GetCScripts () const =0 |
virtual bool | GetCScript (const CScriptID &hash, CScript &redeemScriptOut) const =0 |
virtual bool | AddWatchOnly (const CScript &dest)=0 |
Support for Watch-only addresses. More... | |
virtual bool | RemoveWatchOnly (const CScript &dest)=0 |
virtual bool | HaveWatchOnly (const CScript &dest) const =0 |
virtual bool | HaveWatchOnly () const =0 |
Protected Attributes | |
CCriticalSection | cs_KeyStore |
Detailed Description
A virtual base class for key stores.
Definition at line 19 of file keystore.h.
Constructor & Destructor Documentation
◆ ~CKeyStore()
|
inlinevirtual |
Definition at line 25 of file keystore.h.
Member Function Documentation
◆ AddCScript()
|
pure virtual |
Support for BIP 0013 : see https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki.
Implemented in CWallet, and CBasicKeyStore.
◆ AddKey()
|
virtual |
Definition at line 10 of file keystore.cpp.
References AddKeyPubKey(), and CKey::GetPubKey().
Referenced by MutateTxSign(), SetupDummyInputs(), and signrawtransaction().
◆ AddKeyPubKey()
Add a key to the store.
Implemented in CWallet, CCryptoKeyStore, and CBasicKeyStore.
Referenced by AddKey().
◆ AddWatchOnly()
|
pure virtual |
Support for Watch-only addresses.
Implemented in CWallet, and CBasicKeyStore.
◆ GetCScript()
|
pure virtual |
Implemented in CBasicKeyStore.
Referenced by IsMine(), CAffectedKeysVisitor::operator()(), and SignStep().
◆ GetCScripts()
|
pure virtual |
Implemented in CBasicKeyStore.
◆ GetKey()
Implemented in CWallet, CCryptoKeyStore, and CBasicKeyStore.
Referenced by TransactionSignatureCreator::CreateSig().
◆ GetKeys()
|
pure virtual |
Implemented in CCryptoKeyStore, and CBasicKeyStore.
◆ GetPubKey()
|
pure virtual |
Implemented in CWallet, CCryptoKeyStore, and CBasicKeyStore.
Referenced by AddrToPubKey(), and SignStep().
◆ HaveCScript()
|
pure virtual |
Implemented in CBasicKeyStore.
◆ HaveKey()
|
pure virtual |
Check whether a key corresponding to a given address is present in the store.
Implemented in CWallet, CCryptoKeyStore, and CBasicKeyStore.
Referenced by HaveKeys(), IsMine(), and CAffectedKeysVisitor::operator()().
◆ HaveWatchOnly() [1/2]
|
pure virtual |
Implemented in CBasicKeyStore.
Referenced by IsMine().
◆ HaveWatchOnly() [2/2]
|
pure virtual |
Implemented in CBasicKeyStore.
◆ RemoveWatchOnly()
|
pure virtual |
Implemented in CWallet, and CBasicKeyStore.
Member Data Documentation
◆ cs_KeyStore
|
mutableprotected |
Definition at line 22 of file keystore.h.
Referenced by CCryptoKeyStore::AddCryptedKey(), CBasicKeyStore::AddCScript(), CBasicKeyStore::AddKeyPubKey(), CCryptoKeyStore::AddKeyPubKey(), CBasicKeyStore::AddWatchOnly(), CCryptoKeyStore::EncryptKeys(), CBasicKeyStore::GetCScript(), CBasicKeyStore::GetCScripts(), CBasicKeyStore::GetKey(), CCryptoKeyStore::GetKey(), CBasicKeyStore::GetKeys(), CCryptoKeyStore::GetKeys(), CBasicKeyStore::GetPubKey(), CCryptoKeyStore::GetPubKey(), CBasicKeyStore::HaveCScript(), CBasicKeyStore::HaveKey(), CCryptoKeyStore::HaveKey(), CBasicKeyStore::HaveWatchOnly(), CCryptoKeyStore::IsLocked(), CCryptoKeyStore::Lock(), CBasicKeyStore::RemoveWatchOnly(), CCryptoKeyStore::SetCrypted(), and CCryptoKeyStore::Unlock().
The documentation for this class was generated from the following files:
- src/keystore.h
- src/keystore.cpp