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 "
barretenberg/vm2/common/aztec_types.hpp
"
4
#include "
barretenberg/vm2/common/field.hpp
"
5
6
namespace
bb::avm2::simulation
{
7
8
class
RetrievedBytecodesInterface
{
9
public
:
10
virtual
~RetrievedBytecodesInterface
() =
default
;
11
virtual
bool
contains
(
const
FF
& class_id) = 0;
12
virtual
void
insert
(
const
FF
& class_id) = 0;
13
virtual
uint32_t
size
()
const
= 0;
14
};
15
16
class
RetrievedBytecodesTreeCheckInterface
:
public
RetrievedBytecodesInterface
{
17
public
:
18
// Abstraction leak: we need to track tree roots to implement the set in-circuit
19
virtual
AppendOnlyTreeSnapshot
get_snapshot
()
const
= 0;
20
};
21
22
}
// namespace bb::avm2::simulation
aztec_types.hpp
bb::avm2::simulation::RetrievedBytecodesInterface
Definition
retrieved_bytecodes_tree_check.hpp:8
bb::avm2::simulation::RetrievedBytecodesInterface::insert
virtual void insert(const FF &class_id)=0
bb::avm2::simulation::RetrievedBytecodesInterface::size
virtual uint32_t size() const =0
bb::avm2::simulation::RetrievedBytecodesInterface::contains
virtual bool contains(const FF &class_id)=0
bb::avm2::simulation::RetrievedBytecodesInterface::~RetrievedBytecodesInterface
virtual ~RetrievedBytecodesInterface()=default
bb::avm2::simulation::RetrievedBytecodesTreeCheckInterface
Definition
retrieved_bytecodes_tree_check.hpp:16
bb::avm2::simulation::RetrievedBytecodesTreeCheckInterface::get_snapshot
virtual AppendOnlyTreeSnapshot get_snapshot() const =0
bb::avm2::simulation
AVM range check gadget for witness generation.
Definition
address_derivation_event.hpp:6
bb::avm2::FF
AvmFlavorSettings::FF FF
Definition
field.hpp:10
bb::avm2::AppendOnlyTreeSnapshot
Definition
aztec_types.hpp:486
field.hpp
src
barretenberg
vm2
simulation
interfaces
retrieved_bytecodes_tree_check.hpp
Generated by
1.9.8