Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
core_write.cpp
Go to the documentation of this file.
74 {static_cast<unsigned char>(SIGHASH_NONE|SIGHASH_ANYONECANPAY), std::string("NONE|ANYONECANPAY")},
76 {static_cast<unsigned char>(SIGHASH_SINGLE|SIGHASH_ANYONECANPAY), std::string("SINGLE|ANYONECANPAY")},
104 // the IsUnspendable check makes sure not to try to decode OP_RETURN data that may match the format of a signature
107 // goal: only attempt to decode a defined sighash type from data that looks like a signature within a scriptSig.
109 // the restrictions on the pubkey formats (see IsCompressedOrUncompressedPubKey) being incongruous with the
163 void TxToUniv(const CTransaction& tx, const uint256& hashBlock, UniValue& entry, bool include_hex, const CSpentIndexTxInfo* ptxSpentInfo)
288 entry.pushKV("hex", EncodeHexTx(tx)); // the hex-encoded transaction. used the name "hex" to be consistent with the verbose output of "getrawtransaction".
bool GetTxPayload(const std::vector< unsigned char > &payload, T &obj)
Definition: specialtx.h:21
Definition: script.h:56
Definition: providertx.h:187
Definition: interpreter.h:25
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
Definition: standard.h:80
Definition: spentindex.h:100
void TxToUniv(const CTransaction &tx, const uint256 &hashBlock, UniValue &entry, bool include_hex, const CSpentIndexTxInfo *ptxSpentInfo)
Definition: core_write.cpp:163
Definition: transaction.h:17
size_t GetSerializeSize(const T &t, int nType, int nVersion=0)
Definition: serialize.h:1295
std::string HexStr(const T itbegin, const T itend, bool fSpaces=false)
Definition: utilstrencodings.h:100
Definition: interpreter.h:26
Definition: univalue.h:20
Double ended buffer combining vector and stream-like interfaces.
Definition: streams.h:103
Definition: prevector.h:100
Definition: univalue.h:22
Definition: interpreter.h:45
void ScriptPubKeyToUniv(const CScript &scriptPubKey, UniValue &out, bool fIncludeHex)
Definition: core_write.cpp:137
Definition: univalue.h:22
Definition: script.h:74
Definition: transaction.h:22
std::string ScriptToAsmStr(const CScript &script, const bool fAttemptSighashDecode)
Create the assembly string representation of a CScript object.
Definition: core_write.cpp:86
bool IsUnspendable() const
Returns whether the script is guaranteed to fail at execution, regardless of the initial stack...
Definition: script.h:659
Definition: interpreter.h:27
bool ExtractDestinations(const CScript &scriptPubKey, txnouttype &typeRet, std::vector< CTxDestination > &addressRet, int &nRequiredRet)
Parse a standard scriptPubKey with one or more destination addresses.
Definition: standard.cpp:188
const std::map< unsigned char, std::string > mapSigHashTypes
Definition: core_write.cpp:70
Definition: script.h:182
Definition: univalue.h:22
Definition: script.h:205
std::map< CSpentIndexKey, CSpentIndexValue, CSpentIndexKeyCompare > mSpentInfo
Definition: spentindex.h:102
bool CheckSignatureEncoding(const std::vector< unsigned char > &vchSig, unsigned int flags, ScriptError *serror)
Definition: interpreter.cpp:188
Definition: script.h:58
Definition: transaction.h:21
Definition: script.h:77
const char * GetTxnOutputType(txnouttype t)
Get the name of a txnouttype as a C string, or nullptr if unknown.
Definition: standard.cpp:21
bool pushKV(const std::string &key, const UniValue &val)
Definition: univalue.cpp:135
static std::pair< std::string, UniValue > Pair(const char *cKey, const char *cVal)
Definition: univalue.h:185
Definition: providertx.h:135
std::string EncodeDestination(const CTxDestination &dest)
Definition: base58.cpp:329
Definition: script.h:55
Definition: interpreter.h:24
Definition: spentindex.h:14
A reference to a CScript: the Hash160 of its serialization (see script.h)
Definition: standard.h:22
void ToJson(UniValue &obj) const
Definition: quorums_commitment.h:130
bool GetOp(iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > &vchRet)
Definition: script.h:496
Definition: providertx.h:88
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:198
Definition: providertx.h:19
Definition: script.h:51
Definition: serialize.h:160
bool GetOp2(const_iterator &pc, opcodetype &opcodeRet, std::vector< unsigned char > *pvchRet) const
Definition: script.h:523