2#include <gtest/gtest.h>
9static std::vector<fr> VALUES = []() {
10 std::vector<fr> values(4);
11 for (
size_t i = 0; i < 4; ++i) {
17TEST(crypto_merkle_tree, test_memory_store)
28 for (
size_t i = 0; i < 4; ++i) {
45 EXPECT_EQ(db.
root(), root);
48TEST(crypto_merkle_tree, test_memory_store_sibling_path)
59 for (
size_t i = 0; i < 4; ++i) {
81 EXPECT_EQ(db.
root(), root);
fr update_element(size_t index, fr const &value)
fr_hash_path get_hash_path(size_t index) const
fr_sibling_path get_sibling_path(size_t index) const
std::vector< std::pair< fr, fr > > fr_hash_path
std::vector< fr > fr_sibling_path
Entry point for Barretenberg command-line interface.
TEST(MegaCircuitBuilder, CopyConstructor)
field< Bn254FrParams > fr
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
static fr hash_pair(const fr &lhs, const fr &rhs)