MCPcopy Create free account
hub / github.com/ElementsProject/elements / Hash160

Function Hash160

src/hash.h:92–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90/** Compute the 160-bit hash an object. */
91template<typename T1>
92inline 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. */
100class CHashWriter

Callers 9

GetIDMethod · 0.85
AddCScriptWithDBMethod · 0.85
CScriptIDMethod · 0.85
ScriptHashMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
FUZZ_TARGETFunction · 0.85
decodescriptFunction · 0.85

Calls 4

CHash160Class · 0.85
MakeUCharSpanFunction · 0.85
FinalizeMethod · 0.45
WriteMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGETFunction · 0.68