2#include "barretenberg/stdlib/primitives/field/field.hpp"
3#include "hash_path.hpp"
17 MerkleTree(Store& store,
size_t depth, uint8_t tree_id = 0);
22 fr_hash_path get_hash_path(
index_t index);
24 fr_sibling_path get_sibling_path(
index_t index);
30 size_t depth()
const {
return depth_; }
46 fr update_element(
fr const& root,
fr const& value,
index_t index,
size_t height);
48 fr get_element(
fr const& root,
index_t index,
size_t height);
70 fr const& value1,
index_t index1,
fr const& value2,
index_t index2,
size_t height,
size_t stump_height);
79 void put(
fr const& key,
fr const& left,
fr const& right);
91 void remove(
fr const& key);
95 std::vector<fr> zero_hashes_;
Definition: uint256.hpp:25
Definition: merkle_tree.hpp:13
fr compute_zero_path_hash(size_t height, index_t index, fr const &value)
Definition: merkle_tree.cpp:313
void put(fr const &key, fr const &left, fr const &right)
Definition: merkle_tree.cpp:331
void put_stump(fr const &key, index_t index, fr const &value)
Definition: merkle_tree.cpp:339
fr binary_put(index_t a_index, fr const &a, fr const &b, size_t height)
Definition: merkle_tree.cpp:219
constexpr_utils defines some helper methods that perform some stl-equivalent operations but in a cons...
Definition: constexpr_utils.hpp:16
Definition: widget.bench.cpp:13