Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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:
Inheritance graph
[legend]
Collaboration diagram for CKeyStore:
Collaboration graph
[legend]

Public Member Functions

virtual ~CKeyStore ()
 
virtual bool AddKeyPubKey (const CKey &key, const CPubKey &pubkey)=0
 
virtual bool AddKey (const CKey &key)
 
virtual bool HaveKey (const CKeyID &address) const =0
 
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
 
virtual bool AddCScript (const CScript &redeemScript)=0
 
virtual bool HaveCScript (const CScriptID &hash) const =0
 
virtual bool GetCScript (const CScriptID &hash, CScript &redeemScriptOut) const =0
 

Protected Attributes

CCriticalSection cs_KeyStore
 

Detailed Description

A virtual base class for key stores.

Definition at line 15 of file keystore.h.

Constructor & Destructor Documentation

virtual CKeyStore::~CKeyStore ( )
inlinevirtual

Definition at line 21 of file keystore.h.

Member Function Documentation

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

Implemented in CWallet, and CBasicKeyStore.

bool CKeyStore::AddKey ( const CKey key)
virtual

Definition at line 18 of file keystore.cpp.

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

Implemented in CCryptoKeyStore, CWallet, and CBasicKeyStore.

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

Implemented in CBasicKeyStore.

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

Implemented in CCryptoKeyStore, and CBasicKeyStore.

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

Implemented in CCryptoKeyStore, and CBasicKeyStore.

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

Reimplemented in CCryptoKeyStore.

Definition at line 9 of file keystore.cpp.

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

Implemented in CBasicKeyStore.

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

Implemented in CCryptoKeyStore, and CBasicKeyStore.

Member Data Documentation

CCriticalSection CKeyStore::cs_KeyStore
mutableprotected

Definition at line 18 of file keystore.h.


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