Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
written_public_data_slots_tree_check.cpp
Go to the documentation of this file.
2
4
5namespace bb::avm2::simulation {
6
11
13{
15 const auto& set = written_public_data_slots_stack.top();
16 return set.contains(leaf_slot);
17}
18
20{
22 auto& set = written_public_data_slots_stack.top();
23 set.insert(leaf_slot);
24}
25
27{
28 // FIXME(fcarreiro): This shouldnt be in the interface.
30}
31
33{
34 // FIXME(fcarreiro): This shouldnt be in the interface.
35 return 0;
36}
37
43
45{
46 // Commit the current top of the stack down one level.
49 written_public_data_slots_stack.top() = std::move(current_set);
50}
51
56
57} // namespace bb::avm2::simulation
#define GENERATOR_INDEX__PUBLIC_LEAF_INDEX
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)
static FF hash(const std::vector< FF > &input)
Hashes a vector of field elements.
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13