 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
17 typedef std::vector<unsigned char>
valtype;
21 unsigned int nResult = 0;
22 for (
const valtype& pubkey : pubkeys) {
33 return IsMine(keystore, script);
41 std::vector<valtype> vSolutions;
43 if(!
Solver(scriptPubKey, whichType, vSolutions)) {
82 std::vector<valtype> keys(vSolutions.begin() + 1, vSolutions.begin() + vSolutions.size() - 1);
83 if(
HaveKeys(keys, keystore) == keys.size())
A virtual base class for key stores.
isminetype IsMine(const CKeyStore &keystore, const CTxDestination &dest)
virtual bool HaveWatchOnly(const CScript &dest) const =0
CScript GetScriptForDestination(const CTxDestination &dest)
isminetype
IsMine() return codes.
A reference to a CKey: the Hash160 of its serialized public key.
unsigned int HaveKeys(const std::vector< valtype > &pubkeys, const CKeyStore &keystore)
virtual bool GetCScript(const CScriptID &hash, CScript &redeemScriptOut) const =0
virtual bool HaveKey(const CKeyID &address) const =0
Check whether a key corresponding to a given address is present in the store.
Serialized script, used inside transaction inputs and outputs.
@ ISMINE_WATCH_ONLY
Indicates that we dont know how to create a scriptSig that would solve this if we were given the appr...
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
160-bit unsigned big integer.
An encapsulated public key.
bool Solver(const CKeyStore &keystore, const CScript &scriptPubKey, uint256 hash, int nHashType, CScript &scriptSigRet, txnouttype &whichTypeRet)
Sign scriptPubKey with private keys stored in keystore, given transaction hash and hash type.
std::vector< unsigned char > valtype
std::vector< unsigned char > valtype
A reference to a CScript: the Hash160 of its serialization (see script.h)
CKeyID GetID() const
Get the KeyID of this public key (hash of its serialization)