| 73 | /** Compute the 256-bit hash of an object. */ |
| 74 | template<typename T> |
| 75 | inline uint256 Hash(const T& in1) |
| 76 | { |
| 77 | uint256 result; |
| 78 | CHash256().Write(MakeUCharSpan(in1)).Finalize(result); |
| 79 | return result; |
| 80 | } |
| 81 | |
| 82 | /** Compute the 256-bit hash of the concatenation of two objects. */ |
| 83 | template<typename T1, typename T2> |
no test coverage detected