| 304 | /** Compute the 256-bit hash of an object's serialization. */ |
| 305 | template <typename T> |
| 306 | uint256 SerializeHash(const T& obj, int nType = SER_GETHASH, int nVersion = PROTOCOL_VERSION) |
| 307 | { |
| 308 | CHashWriter ss(nType, nVersion); |
| 309 | ss << obj; |
| 310 | return ss.GetHash(); |
| 311 | } |
| 312 | |
| 313 | unsigned int MurmurHash3(unsigned int nHashSeed, const std::vector<unsigned char>& vDataToHash); |
| 314 |
no test coverage detected