Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
written_public_data_slots_tree_check.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <stack>
4
10
11namespace bb::avm2::simulation {
12
13// Forward declaration.
14class Poseidon2Interface;
15
17 public:
24
25 bool contains(const AztecAddress& contract_address, const FF& slot) override;
26 void insert(const AztecAddress& contract_address, const FF& slot) override;
27 AppendOnlyTreeSnapshot get_snapshot() const override;
28 uint32_t size() const override;
29
30 void create_checkpoint() override;
31 void commit_checkpoint() override;
32 void revert_checkpoint() override;
33
34 private:
36
38 std::stack<WrittenSlotsSet> written_public_data_slots_stack;
39
41};
42
43} // namespace bb::avm2::simulation
bool contains(const AztecAddress &contract_address, const FF &slot) override
void insert(const AztecAddress &contract_address, const FF &slot) override
FF compute_leaf_slot(const AztecAddress &contract_address, const FF &slot)
::ankerl::unordered_dense::set< Key > unordered_flat_set
Definition set.hpp:11
AvmFlavorSettings::FF FF
Definition field.hpp:10