#include <concrete_dbs.hpp>
|
| MerkleDB (LowLevelMerkleDBInterface &raw_merkle_db, PublicDataTreeCheckInterface &public_data_tree_check, NullifierTreeCheckInterface &nullifier_tree_check, NoteHashTreeCheckInterface ¬e_hash_tree_check, WrittenPublicDataSlotsInterface &written_public_data_slots, L1ToL2MessageTreeCheckInterface &l1_to_l2_msg_tree_check) |
|
TreeStates | get_tree_state () const override |
|
void | create_checkpoint () override |
|
void | commit_checkpoint () override |
|
void | revert_checkpoint () override |
|
uint32_t | get_checkpoint_id () const override |
|
FF | storage_read (const AztecAddress &contract_address, const FF &slot) const override |
|
void | storage_write (const AztecAddress &contract_address, const FF &slot, const FF &value, bool is_protocol_write) override |
|
bool | was_storage_written (const AztecAddress &contract_address, const FF &slot) const override |
|
bool | nullifier_exists (const AztecAddress &contract_address, const FF &nullifier) const override |
|
bool | siloed_nullifier_exists (const FF &nullifier) const override |
|
bool | nullifier_write (const AztecAddress &contract_address, const FF &nullifier) override |
|
bool | siloed_nullifier_write (const FF &nullifier) override |
|
bool | note_hash_exists (uint64_t leaf_index, const FF &unique_note_hash) const override |
|
void | note_hash_write (const AztecAddress &contract_address, const FF ¬e_hash) override |
|
void | siloed_note_hash_write (const FF ¬e_hash) override |
|
void | unique_note_hash_write (const FF ¬e_hash) override |
|
bool | l1_to_l2_msg_exists (uint64_t leaf_index, const FF &msg_hash) const override |
|
void | pad_trees () override |
|
void | add_checkpoint_listener (CheckpointNotifiable &listener) |
|
LowLevelMerkleDBInterface & | as_unconstrained () const override |
|
virtual | ~HighLevelMerkleDBInterface ()=default |
|
Definition at line 54 of file concrete_dbs.hpp.
◆ Slot
◆ MerkleDB()
◆ add_checkpoint_listener()
◆ as_unconstrained()
◆ commit_checkpoint()
void bb::avm2::simulation::MerkleDB::commit_checkpoint |
( |
| ) |
|
|
overridevirtual |
◆ create_checkpoint()
void bb::avm2::simulation::MerkleDB::create_checkpoint |
( |
| ) |
|
|
overridevirtual |
◆ get_checkpoint_id()
uint32_t bb::avm2::simulation::MerkleDB::get_checkpoint_id |
( |
| ) |
const |
|
overridevirtual |
◆ get_tree_state()
TreeStates bb::avm2::simulation::MerkleDB::get_tree_state |
( |
| ) |
const |
|
overridevirtual |
◆ l1_to_l2_msg_exists()
bool bb::avm2::simulation::MerkleDB::l1_to_l2_msg_exists |
( |
uint64_t |
leaf_index, |
|
|
const FF & |
msg_hash |
|
) |
| const |
|
overridevirtual |
◆ note_hash_exists()
bool bb::avm2::simulation::MerkleDB::note_hash_exists |
( |
uint64_t |
leaf_index, |
|
|
const FF & |
unique_note_hash |
|
) |
| const |
|
overridevirtual |
◆ note_hash_write()
void bb::avm2::simulation::MerkleDB::note_hash_write |
( |
const AztecAddress & |
contract_address, |
|
|
const FF & |
note_hash |
|
) |
| |
|
overridevirtual |
◆ nullifier_exists()
bool bb::avm2::simulation::MerkleDB::nullifier_exists |
( |
const AztecAddress & |
contract_address, |
|
|
const FF & |
nullifier |
|
) |
| const |
|
overridevirtual |
◆ nullifier_exists_internal()
bool bb::avm2::simulation::MerkleDB::nullifier_exists_internal |
( |
std::optional< AztecAddress > |
contract_address, |
|
|
const FF & |
nullifier |
|
) |
| const |
|
private |
◆ nullifier_write()
bool bb::avm2::simulation::MerkleDB::nullifier_write |
( |
const AztecAddress & |
contract_address, |
|
|
const FF & |
nullifier |
|
) |
| |
|
overridevirtual |
◆ nullifier_write_internal()
◆ pad_trees()
void bb::avm2::simulation::MerkleDB::pad_trees |
( |
| ) |
|
|
overridevirtual |
◆ revert_checkpoint()
void bb::avm2::simulation::MerkleDB::revert_checkpoint |
( |
| ) |
|
|
overridevirtual |
◆ siloed_note_hash_write()
void bb::avm2::simulation::MerkleDB::siloed_note_hash_write |
( |
const FF & |
note_hash | ) |
|
|
overridevirtual |
◆ siloed_nullifier_exists()
bool bb::avm2::simulation::MerkleDB::siloed_nullifier_exists |
( |
const FF & |
nullifier | ) |
const |
|
overridevirtual |
◆ siloed_nullifier_write()
bool bb::avm2::simulation::MerkleDB::siloed_nullifier_write |
( |
const FF & |
nullifier | ) |
|
|
overridevirtual |
◆ storage_read()
FF bb::avm2::simulation::MerkleDB::storage_read |
( |
const AztecAddress & |
contract_address, |
|
|
const FF & |
slot |
|
) |
| const |
|
overridevirtual |
◆ storage_write()
void bb::avm2::simulation::MerkleDB::storage_write |
( |
const AztecAddress & |
contract_address, |
|
|
const FF & |
slot, |
|
|
const FF & |
value, |
|
|
bool |
is_protocol_write |
|
) |
| |
|
overridevirtual |
◆ unique_note_hash_write()
void bb::avm2::simulation::MerkleDB::unique_note_hash_write |
( |
const FF & |
note_hash | ) |
|
|
overridevirtual |
◆ was_storage_written()
bool bb::avm2::simulation::MerkleDB::was_storage_written |
( |
const AztecAddress & |
contract_address, |
|
|
const FF & |
slot |
|
) |
| const |
|
overridevirtual |
◆ checkpoint_listeners
◆ l1_to_l2_msg_tree_check
◆ note_hash_tree_check
◆ nullifier_tree_check
◆ public_data_tree_check
◆ raw_merkle_db
◆ tree_counters_stack
std::stack<TreeCounters> bb::avm2::simulation::MerkleDB::tree_counters_stack |
|
private |
Initial value:{
{ { .note_hash_counter = 0, .nullifier_counter = 0, .l2_to_l1_msg_counter = 0 } }
}
Definition at line 122 of file concrete_dbs.hpp.
◆ written_public_data_slots
The documentation for this class was generated from the following files: