| 2441 | // Used in taphash calculation |
| 2442 | template <class T> |
| 2443 | uint256 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`*/ |