OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
hashmap.cpp
Go to the documentation of this file.
1// Copyright (c) 2021 MIT Digital Currency Initiative,
2// Federal Reserve Bank of Boston
3// Distributed under the MIT software license, see the accompanying
4// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6#include "hashmap.hpp"
7
8namespace cbdc::hashing {
9 auto null::operator()(const hash_t& hash) const noexcept -> size_t {
10 size_t ret{};
11 std::memcpy(&ret, hash.data(), sizeof(ret));
12 return ret;
13 }
14}
std::array< unsigned char, cbdc::hash_size > hash_t
SHA256 hash container.
auto operator()(const hash_t &hash) const noexcept -> size_t
Definition hashmap.cpp:9