Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
Serialized script, used inside transaction inputs and outputs. More...
#include <script.h>
Public Member Functions | |
CScript () | |
CScript (const CScript &b) | |
CScript (const_iterator pbegin, const_iterator pend) | |
CScript (const unsigned char *pbegin, const unsigned char *pend) | |
CScript & | operator+= (const CScript &b) |
CScript (int64_t b) | |
CScript (opcodetype b) | |
CScript (const uint256 &b) | |
CScript (const CScriptNum &b) | |
CScript (const std::vector< unsigned char > &b) | |
CScript & | operator<< (int64_t b) |
CScript & | operator<< (opcodetype opcode) |
CScript & | operator<< (const uint160 &b) |
CScript & | operator<< (const uint256 &b) |
CScript & | operator<< (const CPubKey &key) |
CScript & | operator<< (const CScriptNum &b) |
CScript & | operator<< (const std::vector< unsigned char > &b) |
CScript & | operator<< (const CScript &b) |
bool | GetOp (iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > &vchRet) |
bool | GetOp (iterator &pc, opcodetype &opcodeRet) |
bool | GetOp (const_iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > &vchRet) const |
bool | GetOp (const_iterator &pc, opcodetype &opcodeRet) const |
bool | GetOp2 (const_iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > *pvchRet) const |
int | FindAndDelete (const CScript &b) |
int | Find (opcodetype op) const |
unsigned int | GetSigOpCount (bool fAccurate) const |
unsigned int | GetSigOpCount (const CScript &scriptSig) const |
bool | IsPayToScriptHash () const |
bool | IsPushOnly () const |
bool | HasCanonicalPushes () const |
bool | IsUnspendable () const |
void | SetDestination (const CTxDestination &address) |
void | SetMultisig (int nRequired, const std::vector< CPubKey > &keys) |
void | PrintHex () const |
std::string | ToString () const |
void | print () const |
CScriptID | GetID () const |
std::string | mscore_parse (std::vector< std::string > &msc_parsed, bool bNoBypass=true) const |
std::string | mscore_getHex () const |
Static Public Member Functions | |
static int | DecodeOP_N (opcodetype opcode) |
static opcodetype | EncodeOP_N (int n) |
Protected Member Functions | |
CScript & | push_int64 (int64_t n) |
Friends | |
CScript | operator+ (const CScript &a, const CScript &b) |
Serialized script, used inside transaction inputs and outputs.
|
inline |
|
inline |
|
inline |
Definition at line 438 of file script.h.
References operator<<().
|
inlineexplicit |
Definition at line 440 of file script.h.
References operator<<().
|
inlineexplicit |
Definition at line 441 of file script.h.
References operator<<().
|
inlineexplicit |
Definition at line 442 of file script.h.
References operator<<().
|
inlineexplicit |
Definition at line 443 of file script.h.
References operator<<().
|
inlinestatic |
|
inlinestatic |
|
inline |
Definition at line 616 of file script.h.
References GetOp().
Referenced by EvalScript().
|
inline |
Definition at line 708 of file script.h.
References Hash160().
Referenced by CBasicKeyStore::AddCScript(), addmultisigaddress(), createmultisig(), decodescript(), and CWallet::LoadCScript().
|
inline |
Definition at line 520 of file script.h.
References GetOp2().
Referenced by EvalScript(), Find(), FindAndDelete(), GetSigOpCount(), CBloomFilter::IsRelevantAndUpdate(), Solver(), and ToString().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 547 of file script.h.
References memcpy(), OP_INVALIDOPCODE, OP_PUSHDATA1, OP_PUSHDATA2, and OP_PUSHDATA4.
Referenced by GetOp().
unsigned int CScript::GetSigOpCount | ( | bool | fAccurate | ) | const |
Definition at line 1798 of file script.cpp.
References OP_1, OP_16, OP_CHECKMULTISIG, OP_CHECKMULTISIGVERIFY, OP_CHECKSIG, OP_CHECKSIGVERIFY, and OP_INVALIDOPCODE.
Referenced by GetLegacySigOpCount(), GetP2SHSigOpCount(), and GetSigOpCount().
... and return its opcount:
Definition at line 1822 of file script.cpp.
References Checkpoints::data, GetOp(), GetSigOpCount(), and OP_16.
bool CScript::HasCanonicalPushes | ( | ) | const |
Definition at line 1873 of file script.cpp.
References Checkpoints::data, OP_0, OP_16, OP_PUSHDATA1, OP_PUSHDATA2, and OP_PUSHDATA4.
Referenced by IsStandardTx().
bool CScript::IsPayToScriptHash | ( | ) | const |
Definition at line 1846 of file script.cpp.
References OP_EQUAL, and OP_HASH160.
Referenced by GetP2SHSigOpCount(), Solver(), and VerifyScript().
bool CScript::IsPushOnly | ( | ) | const |
Definition at line 1855 of file script.cpp.
References OP_16.
Referenced by IsStandardTx(), and VerifyScript().
|
inline |
Definition at line 666 of file script.h.
References OP_RETURN.
Referenced by CCoins::ClearUnspendable().
|
inline |
std::string CScript::mscore_parse | ( | std::vector< std::string > & | msc_parsed, |
bool | bNoBypass = true |
||
) | const |
Definition at line 3957 of file mastercore.cpp.
References GetOpName(), OP_PUSHDATA4, and ValueString().
|
inline |
Definition at line 446 of file script.h.
References push_int64().
Referenced by CScript().
|
inline |
Definition at line 470 of file script.h.
References CPubKey::begin(), CPubKey::end(), OP_PUSHDATA1, and CPubKey::size().
|
inline |
Definition at line 478 of file script.h.
References CScriptNum::getvch().
|
inline |
Definition at line 484 of file script.h.
References OP_PUSHDATA1, OP_PUSHDATA2, and OP_PUSHDATA4.
|
inline |
Definition at line 703 of file script.h.
References LogPrintf, and ToString().
|
inline |
|
inlineprotected |
Definition at line 404 of file script.h.
References OP_1, and CScriptNum::serialize().
Referenced by operator<<().
void CScript::SetDestination | ( | const CTxDestination & | address | ) |
Definition at line 1925 of file script.cpp.
Referenced by mastercore::ClassB_send(), createrawtransaction(), PaymentServer::fetchPaymentACK(), GetAccountAddress(), getreceivedbyaddress(), GUIUtil::isDust(), WalletModel::prepareTransaction(), sendmany(), and CWallet::SendMoneyToDestination().
Definition at line 1930 of file script.cpp.
References OP_CHECKMULTISIG.
Referenced by _createmultisig_redeemScript(), and mastercore::ClassB_send().
|
inline |
Definition at line 680 of file script.h.
References GetOp(), GetOpName(), OP_PUSHDATA4, and ValueString().
Referenced by print(), ScriptPubKeyToJSON(), CTxIn::ToString(), CTxOut::ToString(), and TxToJSON().