MCPcopy Create free account
hub / github.com/ElementsProject/elements / operator()

Method operator()

src/util/hasher.cpp:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14SaltedSipHasher::SaltedSipHasher() : m_k0(GetRand(std::numeric_limits<uint64_t>::max())), m_k1(GetRand(std::numeric_limits<uint64_t>::max())) {}
15
16size_t SaltedSipHasher::operator()(const Span<const unsigned char>& script) const
17{
18 return CSipHasher(m_k0, m_k1).Write(script.data(), script.size()).Finalize();
19}

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected