| 2454 | // Used in taphash calculation |
| 2455 | template <class T> |
| 2456 | uint256 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 |
| 2467 | template <class T> |