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
5
6namespace bb::avm2::simulation {
7
9 public:
11 virtual bool contains(const AztecAddress& contract_address, const FF& slot) = 0;
12 virtual void insert(const AztecAddress& contract_address, const FF& slot) = 0;
13 virtual uint32_t size() const = 0;
14
15 // These are needed since this is a checkpointable set.
16 virtual void create_checkpoint() = 0;
17 virtual void commit_checkpoint() = 0;
18 virtual void revert_checkpoint() = 0;
19};
20
22 public:
23 // Abstraction leak: we need to track tree roots to implement the set in-circuit
25};
26
27} // namespace bb::avm2::simulation
virtual bool contains(const AztecAddress &contract_address, const FF &slot)=0
virtual void insert(const AztecAddress &contract_address, const FF &slot)=0
virtual AppendOnlyTreeSnapshot get_snapshot() const =0
AvmFlavorSettings::FF FF
Definition field.hpp:10