Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bytecode_events.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <memory>
5#include <optional>
6#include <vector>
7
13
14namespace bb::avm2::simulation {
15
16using BytecodeId = FF;
17
18// Storage and decomposition of bytecode into sliding window.
23
29
30// This is the event that is emitted when the simulator needs to retrieve bytecode.
31// It might or might not result into the storage/decomposition of a bytecode.
41
44 uint32_t pc;
45 // TODO: Do we want to have a dep on Instruction here or do we redefine what we need?
49
50 // To be used with deduplicating event emitters.
52 Key get_key() const { return { bytecode_id, pc }; }
53};
54
55} // namespace bb::avm2::simulation
FF ContractClassId
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
std::shared_ptr< std::vector< uint8_t > > bytecode
std::optional< InstrDeserializationError > error
std::shared_ptr< std::vector< uint8_t > > bytecode
std::tuple< BytecodeId, uint32_t > Key