[#SaltedCoinsCacheHasher]
= SaltedCoinsCacheHasher
:mrdocs:

SipHash&hyphen;1&hyphen;3&hyphen;UJ based hasher for the coins cache and related coins containers&period;

== Synopsis

Declared in `&lt;coins&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class SaltedCoinsCacheHasher;
----

== Description

Retained entries identify real transaction outputs, so their keys contain computed txids&period; Missing&hyphen;input lookups may contain arbitrary claimed prevouts, but FetchCoin() immediately erases their temporary entries when the backend lookup fails, so non&hyphen;hash keys cannot accumulate&period;

The assumeutxo loader assumes snapshot txids are valid while loading and verifies the complete snapshot&apos;s content hash before activation&period;

Hash values are process&hyphen;local and must not be persisted, serialized, or compared across processes&period;

Having the hash noexcept lets libstdc&plus;&plus; recalculate it during rehash instead of storing it in each node&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:SaltedCoinsCacheHasher/2constructor.adoc[`SaltedCoinsCacheHasher`]         [.small]#[constructor]#
| Construct the hasher, seeding it with a random or fixed salt&period;
| xref:SaltedCoinsCacheHasher/operator_call-03.adoc[`operator()`] 
| Function call operators
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
