7 #ifndef RAVEN_SCRIPT_STANDARD_H 8 #define RAVEN_SCRIPT_STANDARD_H 13 #include <boost/variant.hpp> 17 static const bool DEFAULT_ACCEPT_DATACARRIER =
true;
35 static const unsigned int MAX_OP_RETURN_RELAY = 83;
108 bool Solver(
const CScript& scriptPubKey,
txnouttype& typeRet, std::vector<std::vector<unsigned char> >& vSolutionsRet);
151 #endif // RAVEN_SCRIPT_STANDARD_H bool IsValidDestination(const CTxDestination &dest)
Check whether a CTxDestination is a CNoDestination.
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
unspendable OP_RETURN script that carries data
CScript GetScriptForRawPubKey(const CPubKey &pubkey)
Generate a P2PK script for the given pubkey.
bool Solver(const CScript &scriptPubKey, txnouttype &typeRet, std::vector< std::vector< unsigned char > > &vSolutionsRet)
Parse a scriptPubKey and identify script type for standard scripts.
bool ExtractDestination(const CScript &scriptPubKey, CTxDestination &addressRet)
Parse a standard scriptPubKey for the destination address.
friend bool operator==(const CNoDestination &a, const CNoDestination &b)
CScript GetScriptForNullAssetDataDestination(const CTxDestination &dest)
Generate a script that contains an address used for qualifier, and restricted assets data transaction...
friend bool operator<(const CNoDestination &a, const CNoDestination &b)
CScript GetScriptForWitness(const CScript &redeemscript)
Generate a pay-to-witness script for the given redeem script.
An encapsulated public key.
CScript GetScriptForMultisig(int nRequired, const std::vector< CPubKey > &keys)
Generate a multisig script.
bool fAcceptDatacarrier
A data carrying output is an unspendable output containing data.
CScriptID(const uint160 &in)
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Raven scriptPubKey for the given CTxDestination.
Serialized script, used inside transaction inputs and outputs.
A reference to a CKey: the Hash160 of its serialized public key.
A reference to a CScript: the Hash160 of its serialization (see script.h)
const char * GetTxnOutputType(txnouttype t)
Get the name of a txnouttype as a C string, or nullptr if unknown.
unsigned nMaxDatacarrierBytes
Maximum size of TX_NULL_DATA scripts that this node considers standard.
bool ExtractDestinations(const CScript &scriptPubKey, txnouttype &typeRet, std::vector< CTxDestination > &addressRet, int &nRequiredRet)
Parse a standard scriptPubKey with one or more destination addresses.
unspendable OP_RAVEN_ASSET script that carries data