Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ecc_trace.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <memory>
4
5
#include "
barretenberg/vm2/simulation/events/ecc_events.hpp
"
6
#include "
barretenberg/vm2/simulation/events/event_emitter.hpp
"
7
#include "
barretenberg/vm2/tracegen/lib/interaction_def.hpp
"
8
#include "
barretenberg/vm2/tracegen/trace_container.hpp
"
9
10
namespace
bb::avm2::tracegen
{
11
12
class
EccTraceBuilder
final {
13
public
:
14
void
process_add
(
const
simulation::EventEmitterInterface<simulation::EccAddEvent>::Container
& events,
15
TraceContainer
&
trace
);
16
void
process_scalar_mul
(
const
simulation::EventEmitterInterface<simulation::ScalarMulEvent>::Container
& events,
17
TraceContainer
&
trace
);
18
void
process_add_with_memory
(
19
const
simulation::EventEmitterInterface<simulation::EccAddMemoryEvent>::Container
& events,
20
TraceContainer
&
trace
);
21
22
static
const
InteractionDefinition
interactions
;
23
};
24
25
}
// namespace bb::avm2::tracegen
bb::avm2::simulation::EventEmitterInterface::Container
std::vector< Event > Container
Definition
event_emitter.hpp:13
bb::avm2::tracegen::EccTraceBuilder
Definition
ecc_trace.hpp:12
bb::avm2::tracegen::EccTraceBuilder::process_add_with_memory
void process_add_with_memory(const simulation::EventEmitterInterface< simulation::EccAddMemoryEvent >::Container &events, TraceContainer &trace)
Process the ECC add memory events and populate the relevant columns in the trace. Corresponds to the ...
Definition
ecc_trace.cpp:260
bb::avm2::tracegen::EccTraceBuilder::process_add
void process_add(const simulation::EventEmitterInterface< simulation::EccAddEvent >::Container &events, TraceContainer &trace)
Process the ECC add events and populate the relevant columns in the trace. Corresponds to the non-mem...
Definition
ecc_trace.cpp:71
bb::avm2::tracegen::EccTraceBuilder::process_scalar_mul
void process_scalar_mul(const simulation::EventEmitterInterface< simulation::ScalarMulEvent >::Container &events, TraceContainer &trace)
Process the ECC scalar multiplication events and populate the relevant columns in the trace....
Definition
ecc_trace.cpp:179
bb::avm2::tracegen::EccTraceBuilder::interactions
static const InteractionDefinition interactions
Definition
ecc_trace.hpp:22
bb::avm2::tracegen::InteractionDefinition
Definition
interaction_def.hpp:30
bb::avm2::tracegen::TraceContainer
Definition
trace_container.hpp:24
trace
TestTraceContainer trace
Definition
data_copy.test.cpp:63
ecc_events.hpp
event_emitter.hpp
interaction_def.hpp
bb::avm2::tracegen
Definition
full_row.hpp:9
trace_container.hpp
src
barretenberg
vm2
tracegen
ecc_trace.hpp
Generated by
1.9.8