Anoncoin  0.9.4
P2P Digital Currency
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:
[legend]
Collaboration diagram for CBasicKeyStore:
[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
 
virtual bool AddWatchOnly (const CScript &dest)
 
virtual bool RemoveWatchOnly (const CScript &dest)
 
virtual bool HaveWatchOnly (const CScript &dest) const
 
virtual bool HaveWatchOnly () 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
 
WatchOnlySet setWatchOnly
 
- Protected Attributes inherited from CKeyStore
CCriticalSection cs_KeyStore
 

Detailed Description

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

Definition at line 63 of file keystore.h.

Member Function Documentation

bool CBasicKeyStore::AddCScript ( const CScript redeemScript)
virtual

Implements CKeyStore.

Reimplemented in CWallet.

Definition at line 35 of file keystore.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Implements CKeyStore.

Reimplemented in CWallet.

Definition at line 28 of file keystore.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CBasicKeyStore::AddWatchOnly ( const CScript dest)
virtual

Implements CKeyStore.

Reimplemented in CWallet.

Definition at line 63 of file keystore.cpp.

Here is the caller graph for this function:

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

Implements CKeyStore.

Definition at line 51 of file keystore.cpp.

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

Implements CKeyStore.

Definition at line 94 of file keystore.h.

Here is the caller graph for this function:

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

Implements CKeyStore.

Definition at line 81 of file keystore.h.

Here is the caller graph for this function:

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

Implements CKeyStore.

Definition at line 45 of file keystore.cpp.

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

Implements CKeyStore.

Definition at line 72 of file keystore.h.

Here is the caller graph for this function:

bool CBasicKeyStore::HaveWatchOnly ( const CScript dest) const
virtual

Implements CKeyStore.

Definition at line 77 of file keystore.cpp.

Here is the caller graph for this function:

bool CBasicKeyStore::HaveWatchOnly ( ) const
virtual

Implements CKeyStore.

Definition at line 83 of file keystore.cpp.

bool CBasicKeyStore::RemoveWatchOnly ( const CScript dest)
virtual

Implements CKeyStore.

Reimplemented in CWallet.

Definition at line 70 of file keystore.cpp.

Here is the caller graph for this function:

Member Data Documentation

KeyMap CBasicKeyStore::mapKeys
protected

Definition at line 66 of file keystore.h.

ScriptMap CBasicKeyStore::mapScripts
protected

Definition at line 67 of file keystore.h.

WatchOnlySet CBasicKeyStore::setWatchOnly
protected

Definition at line 68 of file keystore.h.


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