MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetSequencesSHA256

Function GetSequencesSHA256

src/script/interpreter.cpp:2415–2422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2413/** Compute the (single) SHA256 of the concatenation of all nSequences of a tx. */
2414template <class T>
2415uint256 GetSequencesSHA256(const T& txTo)
2416{
2417 CHashWriter ss(SER_GETHASH, 0);
2418 for (const auto& txin : txTo.vin) {
2419 ss << txin.nSequence;
2420 }
2421 return ss.GetSHA256();
2422}
2423
2424/** Compute the (single) SHA256 of the concatenation of all issuances of a tx. */
2425// Used for segwitv0/taproot sighash calculation

Callers 2

InitMethod · 0.85
SignatureHashFunction · 0.85

Calls 1

GetSHA256Method · 0.80

Tested by

no test coverage detected