MCPcopy Create free account
hub / github.com/bitcoin-sv/bitcoin-sv / ScriptToAsmStr

Function ScriptToAsmStr

src/core_write.cpp:91–98  ·  view source on GitHub ↗

* Create the assembly string representation of a CScript object. * @param[in] script CScript object to convert into the asm string * representation. * @param[in] fAttemptSighashDecode Whether to attempt to decode sighash * types on data within the script that matches the format of a signature. Only * pass true for scripts you believe could contain signatures. For example, pass * false,

Source from the content-addressed store, hash-verified

89 * false, or omit the this argument (defaults to false), for scriptPubKeys.
90 */
91std::string ScriptToAsmStr(const CScript& script,
92 const int32_t txnVersion,
93 const bool fAttemptSighashDecode)
94{
95 CStringWriter stringWriter;
96 ScriptToAsmStr(script, stringWriter, txnVersion, fAttemptSighashDecode);
97 return stringWriter.MoveOutString();
98}
99
100void ScriptToAsmStr(const CScript& script,
101 CTextWriter& textWriter,

Callers 6

ScriptPubKeyToUnivFunction · 0.85
TxToJSONFunction · 0.85
ScriptPublicKeyToJSONFunction · 0.85
MutateTxSignFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
signrawtransactionFunction · 0.85

Calls 14

CheckSignatureEncodingFunction · 0.85
HexStrFunction · 0.85
GetOpNameFunction · 0.85
MoveOutStringMethod · 0.80
GetOpMethod · 0.80
IsKnownOpReturnMethod · 0.80
CScriptNumClass · 0.50
beginMethod · 0.45
endMethod · 0.45
WriteMethod · 0.45
sizeMethod · 0.45
getintMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68