|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <indexed_tree_check_trace.hpp>
Public Member Functions | |
| void | process (const simulation::EventEmitterInterface< simulation::IndexedTreeCheckEvent >::Container &events, TraceContainer &trace) |
| Process generic indexed tree check events and populate the relevant columns in the trace. | |
Static Public Attributes | |
| static const InteractionDefinition | interactions |
Definition at line 10 of file indexed_tree_check_trace.hpp.
| void bb::avm2::tracegen::IndexedTreeCheckTraceBuilder::process | ( | const simulation::EventEmitterInterface< simulation::IndexedTreeCheckEvent >::Container & | events, |
| TraceContainer & | trace | ||
| ) |
Process generic indexed tree check events and populate the relevant columns in the trace.
The event stream contains both read/write events and checkpoint events (create, commit, revert). We use process_with_discard to consume the checkpoint events and reconstruct a discard flag for each read/write event, indicating whether it belongs to a reverted checkpoint. Discarded events still produce trace rows but are excluded from public input writes.
Each non-checkpoint event produces one trace row covering: siloing, low leaf validation, indexed tree membership checks, low leaf updates, new leaf insertion, and Merkle proofs.
| events | The container of indexed tree check events to process. |
| trace | The trace container to populate with indexed tree check rows. |
Definition at line 26 of file indexed_tree_check_trace.cpp.
|
static |
Definition at line 15 of file indexed_tree_check_trace.hpp.