OpenCBDC Transaction Processor
Loading...
Searching...
No Matches
parsec/agent/runners/evm/hash.hpp
Go to the documentation of this file.
1// Copyright (c) 2022 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#ifndef OPENCBDC_TX_SRC_PARSEC_AGENT_RUNNERS_EVM_HASH_H_
7#define OPENCBDC_TX_SRC_PARSEC_AGENT_RUNNERS_EVM_HASH_H_
8
9#include <array>
10#include <sstream>
11#include <util/common/hash.hpp>
12
13namespace cbdc {
18 auto keccak_data(const void* data, size_t len) -> hash_t;
19}
20
21#endif // OPENCBDC_TX_SRC_PARSEC_AGENT_RUNNERS_EVM_HASH_H_
std::array< unsigned char, cbdc::hash_size > hash_t
SHA256 hash container.
auto keccak_data(const void *data, size_t len) -> hash_t
Calculates the Keccak256 hash of the specified data.