Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Protected Attributes | 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 ~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 void GetKeys (std::set< CKeyID > &setAddress) 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/fabcoin/bips/blob/master/bip-0013.mediawiki. More...
 
virtual bool HaveCScript (const CScriptID &hash) 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 18 of file keystore.h.

Constructor & Destructor Documentation

virtual CKeyStore::~CKeyStore ( )
inlinevirtual

Definition at line 24 of file keystore.h.

Here is the call graph for this function:

Member Function Documentation

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

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

Implemented in CWallet, and CBasicKeyStore.

Here is the caller graph for this function:

bool CKeyStore::AddKey ( const CKey &  key)
virtual

Definition at line 12 of file keystore.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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:

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:

virtual bool CKeyStore::GetCScript ( const CScriptID &  hash,
CScript &  redeemScriptOut 
) const
pure virtual

Implemented in CBasicKeyStore.

Here is the caller graph for this function:

virtual bool CKeyStore::GetKey ( const CKeyID &  address,
CKey &  keyOut 
) const
pure virtual

Implemented in CCryptoKeyStore, and CBasicKeyStore.

Here is the caller graph for this function:

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

Implemented in CCryptoKeyStore, and CBasicKeyStore.

Here is the caller graph for this function:

virtual bool CKeyStore::GetPubKey ( const CKeyID &  address,
CPubKey &  vchPubKeyOut 
) const
pure virtual

Implemented in CCryptoKeyStore, and CBasicKeyStore.

Here is the caller graph for this function:

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

Implemented in CBasicKeyStore.

Here is the caller graph for this function:

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:

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

Implemented in CBasicKeyStore.

Here is the caller graph for this function:

virtual bool CKeyStore::HaveWatchOnly ( ) const
pure virtual

Implemented in CBasicKeyStore.

Here is the caller graph for this function:

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

Implemented in CWallet, and CBasicKeyStore.

Here is the caller graph for this function:

Member Data Documentation

CCriticalSection CKeyStore::cs_KeyStore
mutableprotected

Definition at line 21 of file keystore.h.


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