1#include <gtest/gtest.h>
3#include "../hashers/hashers.hpp"
18 '8',
'9',
'a',
'b',
'c',
'd',
'e',
'f' };
19 std::string hex(bytes.size() * 2,
'\0');
20 for (
size_t i = 0; i < bytes.size(); ++i) {
21 hex[2 * i] = HEX_CHARS[bytes[i] >> 4];
22 hex[(2 * i) + 1] = HEX_CHARS[bytes[i] & 0x0f];
32 std::vector<uint8_t> hash_vec(hash.begin(), hash.end());
34 EXPECT_EQ(hash_string,
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855");
40 std::vector<uint8_t> hash_vec(hash.begin(), hash.end());
42 EXPECT_EQ(hash_string,
"c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470");
48 std::vector<uint8_t> hash_vec(hash.begin(), hash.end());
50 EXPECT_EQ(hash_string,
"69217a3079908094e11121d042354a7c1f55b6482ca1a51e1b250dfd1ed0eef9");
A wrapper class used to construct KeccakTranscript.
Entry point for Barretenberg command-line interface.
TEST(BoomerangMegaCircuitBuilder, BasicCircuit)
std::string bytes_to_hex_string(const std::vector< uint8_t > &bytes)
Convert bytes to a hex string with 0x prefix.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
static auto hash(const std::vector< uint8_t > &message)
static std::vector< uint8_t > hash(const std::vector< uint8_t > &message)
static auto hash(const B &message)