 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
6 #ifndef BITCOIN_SCRIPT_STANDARD_H
7 #define BITCOIN_SCRIPT_STANDARD_H
12 #include <boost/variant.hpp>
28 static const unsigned int MAX_OP_RETURN_RELAY = 83;
47 static const unsigned int STANDARD_SCRIPT_VERIFY_FLAGS = MANDATORY_SCRIPT_VERIFY_FLAGS |
55 static const unsigned int STANDARD_NOT_MANDATORY_VERIFY_FLAGS = STANDARD_SCRIPT_VERIFY_FLAGS & ~MANDATORY_SCRIPT_VERIFY_FLAGS;
85 bool Solver(
const CScript& scriptPubKey,
txnouttype& typeRet, std::vector<std::vector<unsigned char> >& vSolutionsRet);
96 #endif // BITCOIN_SCRIPT_STANDARD_H
@ SCRIPT_VERIFY_NULLDUMMY
CScript GetScriptForDestination(const CPubKey &dest)
@ SCRIPT_VERIFY_MINIMALDATA
unsigned nMaxDatacarrierBytes
A reference to a CKey: the Hash160 of its serialized public key.
friend bool operator==(const CNoDestination &a, const CNoDestination &b)
@ SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS
bool ExtractPubKey(const CScript &scriptPubKey, CPubKey &out)
CScript GetScriptForMultisig(int nRequired, const std::vector< CPubKey > &keys)
friend bool operator<(const CNoDestination &a, const CNoDestination &b)
int ScriptSigArgsExpected(txnouttype t, const std::vector< std::vector< unsigned char > > &vSolutions)
Serialized script, used inside transaction inputs and outputs.
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
bool ExtractDestinations(const CScript &scriptPubKey, txnouttype &typeRet, std::vector< CTxDestination > &addressRet, int &nRequiredRet)
160-bit unsigned big integer.
An encapsulated public key.
CScriptID(const uint160 &in)
const char * GetTxnOutputType(txnouttype t)
@ SCRIPT_VERIFY_STRICTENC
A reference to a CScript: the Hash160 of its serialization (see script.h)
bool Solver(const CScript &scriptPubKey, txnouttype &typeRet, std::vector< std::vector< unsigned char > > &vSolutionsRet)
Return public keys or hashes from scriptPubKey, for 'standard' transaction types.
bool ExtractDestination(const CScript &scriptPubKey, CTxDestination &addressRet)
bool IsStandard(const CScript &scriptPubKey, txnouttype &whichType)