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