MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetSpentScriptsSHA256

Function GetSpentScriptsSHA256

src/script/interpreter.cpp:1400–1407  ·  view source on GitHub ↗

Compute the (single) SHA256 of the concatenation of all scriptPubKeys spent by a tx. */

Source from the content-addressed store, hash-verified

1398
1399/** Compute the (single) SHA256 of the concatenation of all scriptPubKeys spent by a tx. */
1400uint256 GetSpentScriptsSHA256(const std::vector<CTxOut>& outputs_spent)
1401{
1402 HashWriter ss{};
1403 for (const auto& txout : outputs_spent) {
1404 ss << txout.scriptPubKey;
1405 }
1406 return ss.GetSHA256();
1407}
1408
1409
1410} // namespace

Callers 1

InitMethod · 0.85

Calls 1

GetSHA256Method · 0.80

Tested by

no test coverage detected