MCPcopy Create free account
hub / github.com/LUX-Core/lux / SerializeHash

Function SerializeHash

src/hash.h:306–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304/** Compute the 256-bit hash of an object's serialization. */
305template <typename T>
306uint256 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
313unsigned int MurmurHash3(unsigned int nHashSeed, const std::vector<unsigned char>& vDataToHash);
314

Callers 4

GetHashMethod · 0.85
GetHashMethod · 0.85
UpdateHashMethod · 0.85
GetWitnessHashMethod · 0.85

Calls 1

GetHashMethod · 0.45

Tested by

no test coverage detected