|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <calldata_trace.hpp>
Public Member Functions | |
| void | process_retrieval (const simulation::EventEmitterInterface< simulation::CalldataEvent >::Container &events, TraceContainer &trace) |
| Populate the calldata retrieval trace (calldata.pil) from calldata events. | |
| void | process_hashing (const simulation::EventEmitterInterface< simulation::CalldataEvent >::Container &events, TraceContainer &trace) |
| Populate the calldata hashing trace (calldata_hashing.pil) from calldata events. | |
Static Public Attributes | |
| static const InteractionDefinition | interactions |
Definition at line 10 of file calldata_trace.hpp.
| void bb::avm2::tracegen::CalldataTraceBuilder::process_hashing | ( | const simulation::EventEmitterInterface< simulation::CalldataEvent >::Container & | events, |
| TraceContainer & | trace | ||
| ) |
Populate the calldata hashing trace (calldata_hashing.pil) from calldata events.
Processes each event's calldata through Poseidon2 in chunks of 3 fields, filling rows with input fields, indices, padding flags, round counters, and the output hash. Handles padding when the input length is not a multiple of 3.
| events | The calldata events to hash. |
| trace | The trace container to populate. |
Definition at line 59 of file calldata_trace.cpp.
| void bb::avm2::tracegen::CalldataTraceBuilder::process_retrieval | ( | const simulation::EventEmitterInterface< simulation::CalldataEvent >::Container & | events, |
| TraceContainer & | trace | ||
| ) |
Populate the calldata retrieval trace (calldata.pil) from calldata events.
Fills one row per calldata field per context, with index, value, context_id, and end columns. Empty calldata produces no rows (see calldata.pil EMPTY CALLDATA).
| events | The calldata events. |
| trace | The trace container to populate. |
Definition at line 23 of file calldata_trace.cpp.
|
static |
Definition at line 17 of file calldata_trace.hpp.