5#ifndef BITCOIN_UTIL_HASHER_H
6#define BITCOIN_UTIL_HASHER_H
75 return m_hasher(
id.hash.ToUint256(),
id.n);
94 template <u
int8_t hash_select>
97 static_assert(hash_select <8,
"SignatureCacheHasher only has 8 hashes available.");
99 std::memcpy(&u, key.
begin()+4*hash_select, 4);
An outpoint - a combination of a transaction hash and an index n into its vout.
Optimized SipHash-2-4 implementation for uint256.
const PresaltedSipHasher m_hasher
size_t operator()(const COutPoint &id) const noexcept
Having the hash noexcept allows libstdc++'s unordered_map to recalculate the hash during rehash,...
SaltedOutpointHasher(bool deterministic=false)
size_t operator()(const std::span< const unsigned char > &script) const
const PresaltedSipHasher m_hasher
size_t operator()(const Txid &txid) const
const PresaltedSipHasher m_hasher
size_t operator()(const uint256 &hash) const
size_t operator()(const Wtxid &wtxid) const
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...
uint32_t operator()(const uint256 &key) const
constexpr unsigned char * begin()
const uint256 & ToUint256() const LIFETIMEBOUND
uint64_t ReadLE64(const B *ptr)
size_t operator()(const uint256 &hash) const