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

Function GetPrevoutsSHA256

src/script/interpreter.cpp:1358–1365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1356/** Compute the (single) SHA256 of the concatenation of all prevouts of a tx. */
1357template <class T>
1358uint256 GetPrevoutsSHA256(const T& txTo)
1359{
1360 HashWriter ss{};
1361 for (const auto& txin : txTo.vin) {
1362 ss << txin.prevout;
1363 }
1364 return ss.GetSHA256();
1365}
1366
1367/** Compute the (single) SHA256 of the concatenation of all nSequences of a tx. */
1368template <class T>

Callers 2

InitMethod · 0.85
SignatureHashFunction · 0.85

Calls 1

GetSHA256Method · 0.80

Tested by

no test coverage detected