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

Method HashToRange

src/blockfilter.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25};
26
27uint64_t GCSFilter::HashToRange(const Element& element) const
28{
29 uint64_t hash = CSipHasher(m_params.m_siphash_k0, m_params.m_siphash_k1)
30 .Write(element.data(), element.size())
31 .Finalize();
32 return FastRange64(hash, m_F);
33}
34
35std::vector<uint64_t> GCSFilter::BuildHashedSet(const ElementSet& elements) const
36{

Callers

nothing calls this directly

Calls 6

CSipHasherClass · 0.85
FastRange64Function · 0.85
FinalizeMethod · 0.45
WriteMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected