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

Function Hash

src/hash.h:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73/** Compute the 256-bit hash of an object. */
74template<typename T>
75inline 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. */
83template<typename T1, typename T2>

Callers 6

EncodeBase58CheckFunction · 0.70
DecodeBase58CheckFunction · 0.70
CalcHashMethod · 0.70
TraverseAndExtractMethod · 0.70
GetHashMethod · 0.70
prepareForTransportMethod · 0.70

Calls 4

CHash256Class · 0.85
MakeUCharSpanFunction · 0.85
FinalizeMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected