Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
retrieved_bytecodes_tree_check_event.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <vector>
5
6
#include "
barretenberg/vm2/common/field.hpp
"
7
#include "
barretenberg/vm2/simulation/events/checkpoint_event_type.hpp
"
8
#include "
barretenberg/vm2/simulation/interfaces/db.hpp
"
9
#include "
barretenberg/vm2/simulation/lib/retrieved_bytecodes_tree.hpp
"
10
11
namespace
bb::avm2::simulation
{
12
13
struct
RetrievedBytecodeAppendData
{
14
FF
updated_low_leaf_hash
;
15
FF
new_leaf_hash
;
16
FF
intermediate_root
;
17
18
bool
operator==
(
const
RetrievedBytecodeAppendData
& other)
const
=
default
;
19
};
20
21
struct
RetrievedBytecodesTreeCheckEvent
{
22
FF
class_id
;
23
AppendOnlyTreeSnapshot
prev_snapshot
;
24
AppendOnlyTreeSnapshot
next_snapshot
;
25
26
RetrievedBytecodesTreeLeafPreimage
low_leaf_preimage
;
27
FF
low_leaf_hash
;
28
uint64_t
low_leaf_index
;
29
30
bool
write
;
31
32
std::optional<RetrievedBytecodeAppendData>
append_data
;
33
34
bool
operator==
(
const
RetrievedBytecodesTreeCheckEvent
& other)
const
=
default
;
35
};
36
37
}
// namespace bb::avm2::simulation
checkpoint_event_type.hpp
db.hpp
bb::avm2::simulation
Definition
address_derivation_event.hpp:6
bb::avm2::FF
AvmFlavorSettings::FF FF
Definition
field.hpp:10
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
retrieved_bytecodes_tree.hpp
bb::avm2::AppendOnlyTreeSnapshot
Definition
aztec_types.hpp:293
bb::avm2::simulation::RetrievedBytecodeAppendData
Definition
retrieved_bytecodes_tree_check_event.hpp:13
bb::avm2::simulation::RetrievedBytecodeAppendData::intermediate_root
FF intermediate_root
Definition
retrieved_bytecodes_tree_check_event.hpp:16
bb::avm2::simulation::RetrievedBytecodeAppendData::new_leaf_hash
FF new_leaf_hash
Definition
retrieved_bytecodes_tree_check_event.hpp:15
bb::avm2::simulation::RetrievedBytecodeAppendData::updated_low_leaf_hash
FF updated_low_leaf_hash
Definition
retrieved_bytecodes_tree_check_event.hpp:14
bb::avm2::simulation::RetrievedBytecodeAppendData::operator==
bool operator==(const RetrievedBytecodeAppendData &other) const =default
bb::avm2::simulation::RetrievedBytecodesTreeCheckEvent
Definition
retrieved_bytecodes_tree_check_event.hpp:21
bb::avm2::simulation::RetrievedBytecodesTreeCheckEvent::class_id
FF class_id
Definition
retrieved_bytecodes_tree_check_event.hpp:22
bb::avm2::simulation::RetrievedBytecodesTreeCheckEvent::append_data
std::optional< RetrievedBytecodeAppendData > append_data
Definition
retrieved_bytecodes_tree_check_event.hpp:32
bb::avm2::simulation::RetrievedBytecodesTreeCheckEvent::low_leaf_index
uint64_t low_leaf_index
Definition
retrieved_bytecodes_tree_check_event.hpp:28
bb::avm2::simulation::RetrievedBytecodesTreeCheckEvent::write
bool write
Definition
retrieved_bytecodes_tree_check_event.hpp:30
bb::avm2::simulation::RetrievedBytecodesTreeCheckEvent::operator==
bool operator==(const RetrievedBytecodesTreeCheckEvent &other) const =default
bb::avm2::simulation::RetrievedBytecodesTreeCheckEvent::prev_snapshot
AppendOnlyTreeSnapshot prev_snapshot
Definition
retrieved_bytecodes_tree_check_event.hpp:23
bb::avm2::simulation::RetrievedBytecodesTreeCheckEvent::low_leaf_preimage
RetrievedBytecodesTreeLeafPreimage low_leaf_preimage
Definition
retrieved_bytecodes_tree_check_event.hpp:26
bb::avm2::simulation::RetrievedBytecodesTreeCheckEvent::next_snapshot
AppendOnlyTreeSnapshot next_snapshot
Definition
retrieved_bytecodes_tree_check_event.hpp:24
bb::avm2::simulation::RetrievedBytecodesTreeCheckEvent::low_leaf_hash
FF low_leaf_hash
Definition
retrieved_bytecodes_tree_check_event.hpp:27
bb::crypto::merkle_tree::IndexedLeaf< ClassIdLeafValue >
field.hpp
src
barretenberg
vm2
simulation
events
retrieved_bytecodes_tree_check_event.hpp
Generated by
1.9.8