12 #include <boost/foreach.hpp>
53 ScriptMap::const_iterator mi =
mapScripts.find(hash);
56 redeemScriptOut = (*mi).second;
CCriticalSection cs_KeyStore
virtual bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey)=0
bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey)
static const unsigned int MAX_SCRIPT_ELEMENT_SIZE
virtual bool AddCScript(const CScript &redeemScript)
virtual bool GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) const
CPubKey GetPubKey() const
An encapsulated public key.
static bool error(const char *format)
virtual bool GetKey(const CKeyID &address, CKey &keyOut) const =0
virtual bool AddKey(const CKey &key)
Serialized script, used inside transaction inputs and outputs.
A reference to a CKey: the Hash160 of its serialized public key.
virtual bool GetCScript(const CScriptID &hash, CScript &redeemScriptOut) const
A reference to a CScript: the Hash160 of its serialization (see script.h)
An encapsulated private key.
virtual bool HaveCScript(const CScriptID &hash) const