|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <note_hash_tree_check_trace.hpp>
Public Member Functions | |
| void | process (const simulation::EventEmitterInterface< simulation::NoteHashTreeCheckEvent >::Container &events, TraceContainer &trace) |
| Process the note hash tree check events and populate the relevant columns in the trace. | |
Static Public Attributes | |
| static const InteractionDefinition | interactions |
Definition at line 10 of file note_hash_tree_check_trace.hpp.
| void bb::avm2::tracegen::NoteHashTreeCheckTraceBuilder::process | ( | const simulation::EventEmitterInterface< simulation::NoteHashTreeCheckEvent >::Container & | events, |
| TraceContainer & | trace | ||
| ) |
Process the note hash 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 event produces one trace row covering: siloing, nonce derivation, uniqueness, Merkle membership/write, and existence checking. The diff inverse column is batch-inverted at the end.
| events | The container of note hash tree check events to process. |
| trace | The trace container. |
Definition at line 28 of file note_hash_tree_check_trace.cpp.
|
static |
Definition at line 15 of file note_hash_tree_check_trace.hpp.