5 #ifndef BITCOIN_UTIL_HASHER_H 6 #define BITCOIN_UTIL_HASHER_H 75 return m_hasher(
id.hash.ToUint256(),
id.n);
90 template <u
int8_t hash_select>
93 static_assert(hash_select <8,
"SignatureCacheHasher only has 8 hashes available.");
120 #endif // BITCOIN_UTIL_HASHER_H
const PresaltedSipHasher m_hasher
Optimized SipHash-2-4 implementation for uint256.
size_t operator()(const Wtxid &wtxid) const
memcpy(result.begin(), stream.data(), stream.size())
const PresaltedSipHasher m_hasher
We're hashing a nonce into the entries themselves, so we don't need extra blinding in the set hash co...
constexpr unsigned char * begin()
size_t operator()(const uint256 &hash) const
size_t operator()(const Txid &txid) const
const PresaltedSipHasher m_hasher
uint64_t ReadLE64(const B *ptr)
size_t operator()(const COutPoint &id) const noexcept
Having the hash noexcept allows libstdc++'s unordered_map to recalculate the hash during rehash...
size_t operator()(const std::span< const unsigned char > &script) const
An outpoint - a combination of a transaction hash and an index n into its vout.
size_t operator()(const uint256 &hash) const
const uint256 & ToUint256() const LIFETIMEBOUND
uint32_t operator()(const uint256 &key) const
SaltedOutpointHasher(bool deterministic=false)
const PresaltedSipHasher m_hasher