Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
data_copy_events.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
7
8namespace bb::avm2::simulation {
9
10struct DataCopyException : public std::runtime_error {
12 : std::runtime_error("Error during CD/RD copy")
13 {}
14};
15
17 CD_COPY = 1,
18 RD_COPY = 2,
19};
20
22 uint32_t execution_clk = 0; // Data copy will read and write memory,
24 std::vector<FF> calldata;
25 uint32_t write_context_id = 0; // For mem aware subtraces, they need the context id when referencing memory
26 uint32_t read_context_id = 0; // Refers to the parent/child context id
27 // Loaded from X_data_copy opcode
28 uint32_t data_copy_size = 0;
29 uint32_t data_offset = 0;
30 // This is a direct address from the parent/child context for calldata/returndata
32 uint32_t data_size = 0;
33 bool is_nested = false;
34 // Output Address
36};
37
38} // namespace bb::avm2::simulation
uint32_t MemoryAddress
STL namespace.