OpenCBDC Transaction Processor
|
SipHash function to generate STL data structure hash keys for system IDs. More...
#include <hashmap.hpp>
Public Member Functions | |
auto | operator() (T const &tx) const noexcept -> size_t |
SipHash function to generate STL data structure hash keys for system IDs.
[TODO: Uses randomly generated initialization keys to insure that colliding values will differ from run to run.] For transaction data that comes from users, it is important to key data in sets and hashmaps non-deterministically. Otherwise, malicious actors might pre-calculate colliding values and spam the system with them to cripple performance.
T | hash-like type to hash. |
Definition at line 27 of file hashmap.hpp.
|
inlinenoexcept |
Definition at line 29 of file hashmap.hpp.