Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <indexed_memory_tree.hpp>
Public Member Functions | |
IndexedMemoryTree (size_t depth, size_t num_default_values) | |
GetLowIndexedLeafResponse | get_low_indexed_leaf (const FF &key) const |
IndexedLeaf< LeafType > | get_leaf_preimage (size_t leaf_index) const |
SiblingPath | get_sibling_path (size_t leaf_index) const |
AppendOnlyTreeSnapshot | get_snapshot () const |
SequentialInsertionResult< LeafType > | insert_indexed_leaves (std::span< const LeafType > leaves) |
Private Member Functions | |
void | append_leaf (const IndexedLeaf< LeafType > &leaf) |
Private Attributes | |
MemoryTree< HashingPolicy > | tree |
size_t | depth |
size_t | max_leaves |
std::vector< IndexedLeaf< LeafType > > | leaves |
Definition at line 10 of file indexed_memory_tree.hpp.
bb::avm2::simulation::IndexedMemoryTree< LeafType, HashingPolicy >::IndexedMemoryTree | ( | size_t | depth, |
size_t | num_default_values | ||
) |
Definition at line 34 of file indexed_memory_tree.hpp.
|
private |
Definition at line 162 of file indexed_memory_tree.hpp.
IndexedLeaf< LeafType > bb::avm2::simulation::IndexedMemoryTree< LeafType, HashingPolicy >::get_leaf_preimage | ( | size_t | leaf_index | ) | const |
Definition at line 91 of file indexed_memory_tree.hpp.
GetLowIndexedLeafResponse bb::avm2::simulation::IndexedMemoryTree< LeafType, HashingPolicy >::get_low_indexed_leaf | ( | const FF & | key | ) | const |
Definition at line 70 of file indexed_memory_tree.hpp.
SiblingPath bb::avm2::simulation::IndexedMemoryTree< LeafType, HashingPolicy >::get_sibling_path | ( | size_t | leaf_index | ) | const |
Definition at line 97 of file indexed_memory_tree.hpp.
AppendOnlyTreeSnapshot bb::avm2::simulation::IndexedMemoryTree< LeafType, HashingPolicy >::get_snapshot | ( | ) | const |
Definition at line 103 of file indexed_memory_tree.hpp.
SequentialInsertionResult< LeafType > bb::avm2::simulation::IndexedMemoryTree< LeafType, HashingPolicy >::insert_indexed_leaves | ( | std::span< const LeafType > | leaves | ) |
Definition at line 112 of file indexed_memory_tree.hpp.
|
private |
Definition at line 28 of file indexed_memory_tree.hpp.
|
private |
Definition at line 30 of file indexed_memory_tree.hpp.
|
private |
Definition at line 29 of file indexed_memory_tree.hpp.
|
private |
Definition at line 27 of file indexed_memory_tree.hpp.