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
CBasicKeyStore Class Reference

Basic key store, that keeps keys in an address->secret map. More...

#include <keystore.h>

Inheritance diagram for CBasicKeyStore:
Inheritance graph
[legend]
Collaboration diagram for CBasicKeyStore:
Collaboration graph
[legend]

Public Member Functions

bool AddKeyPubKey (const CKey &key, const CPubKey &pubkey)
 
bool HaveKey (const CKeyID &address) const
 
void GetKeys (std::set< CKeyID > &setAddress) const
 
bool GetKey (const CKeyID &address, CKey &keyOut) const
 
virtual bool AddCScript (const CScript &redeemScript)
 
virtual bool HaveCScript (const CScriptID &hash) const
 
virtual bool GetCScript (const CScriptID &hash, CScript &redeemScriptOut) const
 
- Public Member Functions inherited from CKeyStore
virtual ~CKeyStore ()
 
virtual bool AddKey (const CKey &key)
 
virtual bool GetPubKey (const CKeyID &address, CPubKey &vchPubKeyOut) const
 

Protected Attributes

KeyMap mapKeys
 
ScriptMap mapScripts
 
- Protected Attributes inherited from CKeyStore
CCriticalSection cs_KeyStore
 

Detailed Description

Basic key store, that keeps keys in an address->secret map.

Definition at line 43 of file keystore.h.

Member Function Documentation

bool CBasicKeyStore::AddCScript ( const CScript redeemScript)
virtual

Implements CKeyStore.

Reimplemented in CWallet.

Definition at line 29 of file keystore.cpp.

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

Implements CKeyStore.

Reimplemented in CCryptoKeyStore, and CWallet.

Definition at line 22 of file keystore.cpp.

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

Implements CKeyStore.

Definition at line 42 of file keystore.cpp.

bool CBasicKeyStore::GetKey ( const CKeyID address,
CKey keyOut 
) const
inlinevirtual

Implements CKeyStore.

Reimplemented in CCryptoKeyStore.

Definition at line 73 of file keystore.h.

void CBasicKeyStore::GetKeys ( std::set< CKeyID > &  setAddress) const
inlinevirtual

Implements CKeyStore.

Reimplemented in CCryptoKeyStore.

Definition at line 60 of file keystore.h.

bool CBasicKeyStore::HaveCScript ( const CScriptID hash) const
virtual

Implements CKeyStore.

Definition at line 36 of file keystore.cpp.

bool CBasicKeyStore::HaveKey ( const CKeyID address) const
inlinevirtual

Implements CKeyStore.

Reimplemented in CCryptoKeyStore.

Definition at line 51 of file keystore.h.

Member Data Documentation

KeyMap CBasicKeyStore::mapKeys
protected

Definition at line 46 of file keystore.h.

ScriptMap CBasicKeyStore::mapScripts
protected

Definition at line 47 of file keystore.h.


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