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

Function GetOutpointFlagsSHA256

src/script/interpreter.cpp:2393–2400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2391/** Compute the (single) SHA256 of the concatenation of all outpoint flags of a tx. */
2392template <class T>
2393uint256 GetOutpointFlagsSHA256(const T& txTo)
2394{
2395 CHashWriter ss(SER_GETHASH, 0);
2396 for (const auto& txin : txTo.vin) {
2397 ss << GetOutpointFlag(txin);
2398 }
2399 return ss.GetSHA256();
2400}
2401
2402/** Compute the (single) SHA256 of the concatenation of all prevouts of a tx. */
2403template <class T>

Callers 1

InitMethod · 0.85

Calls 2

GetOutpointFlagFunction · 0.85
GetSHA256Method · 0.80

Tested by

no test coverage detected