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

Function GetIssuanceRangeproofsSHA256

src/script/interpreter.cpp:2456–2464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2454// Used in taphash calculation
2455template <class T>
2456uint256 GetIssuanceRangeproofsSHA256(const T& txTo)
2457{
2458 CHashWriter ss(SER_GETHASH, 0);
2459 for (const auto& inwit : txTo.witness.vtxinwit) {
2460 ss << inwit.vchIssuanceAmountRangeproof;
2461 ss << inwit.vchInflationKeysRangeproof;
2462 }
2463 return ss.GetSHA256();
2464}
2465
2466// Compute a (single) SHA256 of the concatenation of all outputs
2467template <class T>

Callers 1

InitMethod · 0.85

Calls 1

GetSHA256Method · 0.80

Tested by

no test coverage detected