 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
36 if (redeemScript.
size() > MAX_SCRIPT_ELEMENT_SIZE)
37 return error(
"CBasicKeyStore::AddCScript() : redeemScripts > %i bytes are invalid", MAX_SCRIPT_ELEMENT_SIZE);
53 ScriptMap::const_iterator mi =
mapScripts.find(hash);
55 redeemScriptOut = (*mi).second;
virtual bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey)=0
Add a key to the store.
virtual bool GetPubKey(const CKeyID &address, CPubKey &vchPubKeyOut) const
A reference to a CKey: the Hash160 of its serialized public key.
RecursiveMutex cs_KeyStore
virtual bool RemoveWatchOnly(const CScript &dest)
WatchOnlySet setWatchOnly
bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey)
Add a key to the store.
virtual bool AddCScript(const CScript &redeemScript)
Support for BIP 0013 : see https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki.
CPubKey GetPubKey() const
Compute the public key from a private key.
Serialized script, used inside transaction inputs and outputs.
virtual bool GetCScript(const CScriptID &hash, CScript &redeemScriptOut) const
virtual bool GetKey(const CKeyID &address, CKey &keyOut) const =0
An encapsulated public key.
An encapsulated private key.
virtual bool AddKey(const CKey &key)
virtual bool AddWatchOnly(const CScript &dest)
Support for Watch-only addresses.
virtual bool HaveCScript(const CScriptID &hash) const
virtual bool HaveWatchOnly() const
A reference to a CScript: the Hash160 of its serialization (see script.h)
bool error(const char *fmt, const Args &... args)
CKeyID GetID() const
Get the KeyID of this public key (hash of its serialization)