|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <to_radix_trace.hpp>
Public Member Functions | |
| void | process (const simulation::EventEmitterInterface< simulation::ToRadixEvent >::Container &events, TraceContainer &trace) |
| Processes the non-memory aware to_radix subtrace ingesting ToRadixEvent events. The populated number of rows per event is equal to the number of limbs in the event. Simulation guarantees that the limbs in the event fully decompose the value (no truncation) but high limbs might be zero. | |
| void | process_with_memory (const simulation::EventEmitterInterface< simulation::ToRadixMemoryEvent >::Container &events, TraceContainer &trace) |
| Processes the memory aware to_radix subtrace ingesting ToRadixMemoryEvent events. The populated number of rows per event is equal to event.num_limbs if there is no error and num_limbs is not zero. Otherwise, a single row is populated. | |
Static Public Attributes | |
| static const InteractionDefinition | interactions |
Definition at line 10 of file to_radix_trace.hpp.
| void bb::avm2::tracegen::ToRadixTraceBuilder::process | ( | const simulation::EventEmitterInterface< simulation::ToRadixEvent >::Container & | events, |
| TraceContainer & | trace | ||
| ) |
Processes the non-memory aware to_radix subtrace ingesting ToRadixEvent events. The populated number of rows per event is equal to the number of limbs in the event. Simulation guarantees that the limbs in the event fully decompose the value (no truncation) but high limbs might be zero.
Events have a single flavor: a complete little-endian decomposition with all limbs populated (at least the number of limbs needed to represent the value in the given radix). No error variants exist for this event type.
| events | The events of type ToRadixEvent to process. |
| trace | The trace to populate. |
Definition at line 33 of file to_radix_trace.cpp.
| void bb::avm2::tracegen::ToRadixTraceBuilder::process_with_memory | ( | const simulation::EventEmitterInterface< simulation::ToRadixMemoryEvent >::Container & | events, |
| TraceContainer & | trace | ||
| ) |
Processes the memory aware to_radix subtrace ingesting ToRadixMemoryEvent events. The populated number of rows per event is equal to event.num_limbs if there is no error and num_limbs is not zero. Otherwise, a single row is populated.
Events are emitted in the following flavors (all from ToRadix::to_be_radix in simulation):
| events | The events of type ToRadixMemoryEvent to process. |
| trace | The trace to populate. |
Definition at line 142 of file to_radix_trace.cpp.
|
static |
Definition at line 17 of file to_radix_trace.hpp.