Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
update_check.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
barretenberg/vm2/simulation/events/update_check.hpp
"
4
#include "
barretenberg/vm2/simulation/gadgets/poseidon2.hpp
"
5
#include "
barretenberg/vm2/simulation/gadgets/range_check.hpp
"
6
#include "
barretenberg/vm2/simulation/interfaces/db.hpp
"
7
#include "
barretenberg/vm2/simulation/interfaces/update_check.hpp
"
8
9
namespace
bb::avm2::simulation
{
10
11
class
UpdateCheck
:
public
UpdateCheckInterface
{
12
public
:
13
UpdateCheck
(
Poseidon2Interface
&
poseidon2
,
14
RangeCheckInterface
&
range_check
,
15
GreaterThanInterface
&
gt
,
16
HighLevelMerkleDBInterface
&
merkle_db
,
17
EventEmitterInterface<UpdateCheckEvent>
& read_event_emitter,
18
const
GlobalVariables
&
globals
)
19
:
update_check_events
(read_event_emitter)
20
,
poseidon2
(
poseidon2
)
21
,
range_check
(
range_check
)
22
,
gt
(
gt
)
23
,
merkle_db
(
merkle_db
)
24
,
globals
(
globals
)
25
{}
26
27
void
check_current_class_id
(
const
AztecAddress
& address,
const
ContractInstance
& instance)
override
;
28
29
private
:
30
EventEmitterInterface<UpdateCheckEvent>
&
update_check_events
;
31
Poseidon2Interface
&
poseidon2
;
32
RangeCheckInterface
&
range_check
;
33
GreaterThanInterface
&
gt
;
34
HighLevelMerkleDBInterface
&
merkle_db
;
35
const
GlobalVariables
&
globals
;
36
};
37
38
}
// namespace bb::avm2::simulation
bb::avm2::gt
Definition
gt.hpp:33
bb::avm2::range_check
Definition
range_check.hpp:34
bb::avm2::simulation::EventEmitterInterface
Definition
event_emitter.hpp:10
bb::avm2::simulation::GreaterThanInterface
Definition
gt.hpp:9
bb::avm2::simulation::HighLevelMerkleDBInterface
Definition
db.hpp:81
bb::avm2::simulation::Poseidon2Interface
Definition
poseidon2.hpp:14
bb::avm2::simulation::RangeCheckInterface
Definition
range_check.hpp:8
bb::avm2::simulation::UpdateCheck
Definition
update_check.hpp:11
bb::avm2::simulation::UpdateCheck::poseidon2
Poseidon2Interface & poseidon2
Definition
update_check.hpp:31
bb::avm2::simulation::UpdateCheck::globals
const GlobalVariables & globals
Definition
update_check.hpp:35
bb::avm2::simulation::UpdateCheck::update_check_events
EventEmitterInterface< UpdateCheckEvent > & update_check_events
Definition
update_check.hpp:30
bb::avm2::simulation::UpdateCheck::merkle_db
HighLevelMerkleDBInterface & merkle_db
Definition
update_check.hpp:34
bb::avm2::simulation::UpdateCheck::check_current_class_id
void check_current_class_id(const AztecAddress &address, const ContractInstance &instance) override
Definition
update_check.cpp:23
bb::avm2::simulation::UpdateCheck::range_check
RangeCheckInterface & range_check
Definition
update_check.hpp:32
bb::avm2::simulation::UpdateCheck::gt
GreaterThanInterface & gt
Definition
update_check.hpp:33
bb::avm2::simulation::UpdateCheck::UpdateCheck
UpdateCheck(Poseidon2Interface &poseidon2, RangeCheckInterface &range_check, GreaterThanInterface >, HighLevelMerkleDBInterface &merkle_db, EventEmitterInterface< UpdateCheckEvent > &read_event_emitter, const GlobalVariables &globals)
Definition
update_check.hpp:13
bb::avm2::simulation::UpdateCheckInterface
Definition
update_check.hpp:7
bb::crypto::Poseidon2< crypto::Poseidon2Bn254ScalarFieldParams >
db.hpp
bb::avm2::simulation
Definition
address_derivation_event.hpp:6
bb::avm2::AztecAddress
FF AztecAddress
Definition
aztec_types.hpp:12
update_check.hpp
range_check.hpp
update_check.hpp
bb::avm2::ContractInstance
Definition
aztec_types.hpp:85
bb::avm2::GlobalVariables
Definition
aztec_types.hpp:274
poseidon2.hpp
src
barretenberg
vm2
simulation
gadgets
update_check.hpp
Generated by
1.9.8