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

Function GetOutputsSHA256

src/script/interpreter.cpp:2468–2475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2466// Compute a (single) SHA256 of the concatenation of all outputs
2467template <class T>
2468uint256 GetOutputsSHA256(const T& txTo)
2469{
2470 CHashWriter ss(SER_GETHASH, 0);
2471 for (const auto& txout : txTo.vout) {
2472 ss << txout;
2473 }
2474 return ss.GetSHA256();
2475}
2476
2477/** Compute the (single) SHA256 of the concatenation of all asset and amounts commitments spent by a tx. */
2478// Elements TapHash only

Callers 2

InitMethod · 0.85
SignatureHashFunction · 0.85

Calls 1

GetSHA256Method · 0.80

Tested by

no test coverage detected