Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
retrieved_bytecodes_tree_check.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <utility>
5
10
11namespace bb::avm2::simulation {
12
14 public:
19
20 bool contains(const FF& class_id) override;
21
22 void insert(const FF& class_id) override;
23
24 AppendOnlyTreeSnapshot get_snapshot() const override;
25
26 uint32_t size() const override;
27
28 private:
30
32};
33
34} // namespace bb::avm2::simulation
bool contains(const FF &class_id) override
Checks whether a contract class ID exists in the retrieved bytecodes tree.
RetrievedBytecodesTreeCheck(IndexedTreeCheckInterface &indexed_tree_check, RetrievedBytecodesTree initial_state)
void insert(const FF &class_id) override
Inserts a contract class ID into the retrieved bytecodes tree.
uint32_t size() const override
Returns the number of retrieved bytecode class IDs in the tree.
AppendOnlyTreeSnapshot get_snapshot() const override
Returns the current tree snapshot.
AVM range check gadget for witness generation.
AvmFlavorSettings::FF FF
Definition field.hpp:10
STL namespace.