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

Function GetOutputWitnessesSHA256

src/script/interpreter.cpp:2443–2450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2441// Used in taphash calculation
2442template <class T>
2443uint256 GetOutputWitnessesSHA256(const T& txTo)
2444{
2445 CHashWriter ss(SER_GETHASH, 0);
2446 for (const auto& outwit : txTo.witness.vtxoutwit) {
2447 ss << outwit;
2448 }
2449 return ss.GetSHA256();
2450}
2451
2452/** Compute the (single) SHA256 of the concatenation of all input issuance witnesses
2453 * (vchIssuanceAmountRangeproof and vchInflationKeysRangeproof proof) in `CTxInWitness`*/

Callers 1

InitMethod · 0.85

Calls 1

GetSHA256Method · 0.80

Tested by

no test coverage detected