Bitcoin Core  0.18.99
P2P Digital Currency
Public Member Functions | List of all members
CKeyStore Class Referenceabstract

A virtual base class for key stores. More...

#include <keystore.h>

Inheritance diagram for CKeyStore:
[legend]
Collaboration diagram for CKeyStore:
[legend]

Public Member Functions

virtual bool AddKeyPubKey (const CKey &key, const CPubKey &pubkey)=0
 Add a key to the store. More...
 
virtual bool HaveKey (const CKeyID &address) const =0
 Check whether a key corresponding to a given address is present in the store. More...
 
virtual std::set< CKeyIDGetKeys () 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< CScriptIDGetCScripts () 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
 
- Public Member Functions inherited from SigningProvider
virtual ~SigningProvider ()
 
virtual bool GetCScript (const CScriptID &scriptid, CScript &script) const
 
virtual bool GetPubKey (const CKeyID &address, CPubKey &pubkey) const
 
virtual bool GetKey (const CKeyID &address, CKey &key) const
 
virtual bool GetKeyOrigin (const CKeyID &keyid, KeyOriginInfo &info) const
 

Detailed Description

A virtual base class for key stores.

Definition at line 19 of file keystore.h.

Member Function Documentation

◆ AddCScript()

virtual bool CKeyStore::AddCScript ( const CScript redeemScript)
pure virtual

Support for BIP 0013 : see https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki.

Implemented in CWallet, and CBasicKeyStore.

Here is the caller graph for this function:

◆ AddKeyPubKey()

virtual bool CKeyStore::AddKeyPubKey ( const CKey key,
const CPubKey pubkey 
)
pure virtual

Add a key to the store.

Implemented in CWallet, CCryptoKeyStore, and CBasicKeyStore.

Here is the caller graph for this function:

◆ AddWatchOnly()

virtual bool CKeyStore::AddWatchOnly ( const CScript dest)
pure virtual

Support for Watch-only addresses.

Implemented in CWallet, and CBasicKeyStore.

Here is the caller graph for this function:

◆ GetCScripts()

virtual std::set<CScriptID> CKeyStore::GetCScripts ( ) const
pure virtual

Implemented in CBasicKeyStore.

Here is the caller graph for this function:

◆ GetKeys()

virtual std::set<CKeyID> CKeyStore::GetKeys ( ) const
pure virtual

Implemented in CCryptoKeyStore, and CBasicKeyStore.

Here is the caller graph for this function:

◆ HaveCScript()

virtual bool CKeyStore::HaveCScript ( const CScriptID hash) const
pure virtual

Implemented in CBasicKeyStore.

Here is the caller graph for this function:

◆ HaveKey()

virtual bool CKeyStore::HaveKey ( const CKeyID address) const
pure virtual

Check whether a key corresponding to a given address is present in the store.

Implemented in CCryptoKeyStore, and CBasicKeyStore.

Here is the caller graph for this function:

◆ HaveWatchOnly() [1/2]

virtual bool CKeyStore::HaveWatchOnly ( const CScript dest) const
pure virtual

Implemented in CBasicKeyStore.

◆ HaveWatchOnly() [2/2]

virtual bool CKeyStore::HaveWatchOnly ( ) const
pure virtual

Implemented in CBasicKeyStore.

Here is the caller graph for this function:

◆ RemoveWatchOnly()

virtual bool CKeyStore::RemoveWatchOnly ( const CScript dest)
pure virtual

Implemented in CWallet, and CBasicKeyStore.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: