| 90 | /** Compute the 160-bit hash an object. */ |
| 91 | template<typename T1> |
| 92 | inline uint160 Hash160(const T1& in1) |
| 93 | { |
| 94 | uint160 result; |
| 95 | CHash160().Write(MakeUCharSpan(in1)).Finalize(result); |
| 96 | return result; |
| 97 | } |
| 98 | |
| 99 | /** A writer stream (for serialization) that computes a 256-bit hash. */ |
| 100 | class CHashWriter |