| 2466 | // Compute a (single) SHA256 of the concatenation of all outputs |
| 2467 | template <class T> |
| 2468 | uint256 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 |
no test coverage detected