Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
class_id_derivation_trace.cpp
Go to the documentation of this file.
2
3#include <memory>
4
11
12namespace bb::avm2::tracegen {
13
17{
18 using C = Column;
19
20 uint32_t row = 0;
21 for (const auto& event : events) {
22 trace.set(row,
23 { {
24 { C::class_id_derivation_sel, 1 },
25 { C::class_id_derivation_class_id, event.class_id },
26 { C::class_id_derivation_artifact_hash, event.klass.artifact_hash },
27 { C::class_id_derivation_private_function_root, event.klass.private_function_root },
28 { C::class_id_derivation_public_bytecode_commitment, event.klass.public_bytecode_commitment },
29
30 // This is temp because aliasing is not allowed in lookups
31 { C::class_id_derivation_temp_constant_for_lookup, GENERATOR_INDEX__CONTRACT_LEAF },
32 } });
33 row++;
34 }
35}
36
40 .add<lookup_class_id_derivation_class_id_poseidon2_1_settings, InteractionType::LookupSequential>();
41
42} // namespace bb::avm2::tracegen
#define GENERATOR_INDEX__CONTRACT_LEAF
void process(const simulation::EventEmitterInterface< simulation::ClassIdDerivationEvent >::Container &events, TraceContainer &trace)
InteractionDefinition & add(auto &&... args)
TestTraceContainer trace
lookup_settings< lookup_class_id_derivation_class_id_poseidon2_0_settings_ > lookup_class_id_derivation_class_id_poseidon2_0_settings
simulation::PublicDataTreeReadWriteEvent event