Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
written_public_data_slot_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/lib/db_interfaces.hpp
"
9
#include "
barretenberg/vm2/simulation/lib/written_slots_tree.hpp
"
10
11
namespace
bb::avm2::simulation
{
12
13
struct
SlotAppendData
{
14
FF
updated_low_leaf_hash
;
15
FF
new_leaf_hash
;
16
FF
intermediate_root
;
17
18
bool
operator==
(
const
SlotAppendData
& other)
const
=
default
;
19
};
20
21
struct
WrittenPublicDataSlotsTreeCheckEvent
{
22
AztecAddress
contract_address
;
23
FF
slot
;
24
FF
leaf_slot
;
25
AppendOnlyTreeSnapshot
prev_snapshot
;
26
AppendOnlyTreeSnapshot
next_snapshot
;
27
28
WrittenPublicDataSlotsTreeLeafPreimage
low_leaf_preimage
;
29
FF
low_leaf_hash
;
30
uint64_t
low_leaf_index
;
31
32
bool
write
;
33
34
std::optional<SlotAppendData>
append_data
;
35
36
bool
operator==
(
const
WrittenPublicDataSlotsTreeCheckEvent
& other)
const
=
default
;
37
};
38
39
}
// namespace bb::avm2::simulation
checkpoint_event_type.hpp
db_interfaces.hpp
bb::avm2::simulation
Definition
address_derivation.cpp:8
bb::avm2::AztecAddress
FF AztecAddress
Definition
aztec_types.hpp:11
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
bb::avm2::AppendOnlyTreeSnapshot
Definition
aztec_types.hpp:273
bb::avm2::simulation::SlotAppendData
Definition
written_public_data_slot_tree_check_event.hpp:13
bb::avm2::simulation::SlotAppendData::new_leaf_hash
FF new_leaf_hash
Definition
written_public_data_slot_tree_check_event.hpp:15
bb::avm2::simulation::SlotAppendData::intermediate_root
FF intermediate_root
Definition
written_public_data_slot_tree_check_event.hpp:16
bb::avm2::simulation::SlotAppendData::updated_low_leaf_hash
FF updated_low_leaf_hash
Definition
written_public_data_slot_tree_check_event.hpp:14
bb::avm2::simulation::SlotAppendData::operator==
bool operator==(const SlotAppendData &other) const =default
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent
Definition
written_public_data_slot_tree_check_event.hpp:21
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::slot
FF slot
Definition
written_public_data_slot_tree_check_event.hpp:23
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::low_leaf_hash
FF low_leaf_hash
Definition
written_public_data_slot_tree_check_event.hpp:29
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::append_data
std::optional< SlotAppendData > append_data
Definition
written_public_data_slot_tree_check_event.hpp:34
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::next_snapshot
AppendOnlyTreeSnapshot next_snapshot
Definition
written_public_data_slot_tree_check_event.hpp:26
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::low_leaf_index
uint64_t low_leaf_index
Definition
written_public_data_slot_tree_check_event.hpp:30
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::low_leaf_preimage
WrittenPublicDataSlotsTreeLeafPreimage low_leaf_preimage
Definition
written_public_data_slot_tree_check_event.hpp:28
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::contract_address
AztecAddress contract_address
Definition
written_public_data_slot_tree_check_event.hpp:22
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::write
bool write
Definition
written_public_data_slot_tree_check_event.hpp:32
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::prev_snapshot
AppendOnlyTreeSnapshot prev_snapshot
Definition
written_public_data_slot_tree_check_event.hpp:25
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::operator==
bool operator==(const WrittenPublicDataSlotsTreeCheckEvent &other) const =default
bb::avm2::simulation::WrittenPublicDataSlotsTreeCheckEvent::leaf_slot
FF leaf_slot
Definition
written_public_data_slot_tree_check_event.hpp:24
bb::crypto::merkle_tree::IndexedLeaf< WrittenPublicDataSlotLeafValue >
field.hpp
written_slots_tree.hpp
src
barretenberg
vm2
simulation
events
written_public_data_slot_tree_check_event.hpp
Generated by
1.9.8