Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
db_types.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
barretenberg/crypto/merkle_tree/indexed_tree/indexed_leaf.hpp
"
4
#include "
barretenberg/crypto/merkle_tree/types.hpp
"
5
#include "
barretenberg/vm2/common/aztec_types.hpp
"
6
7
namespace
bb::avm2::simulation
{
8
9
using
NullifierTreeLeafPreimage
=
crypto::merkle_tree::IndexedLeaf<crypto::merkle_tree::NullifierLeafValue>
;
10
using
PublicDataTreeLeafPreimage
=
crypto::merkle_tree::IndexedLeaf<crypto::merkle_tree::PublicDataLeafValue>
;
11
12
struct
TreeCounters
{
13
uint32_t
note_hash_counter
;
14
uint32_t
nullifier_counter
;
15
uint32_t
l2_to_l1_msg_counter
;
16
// public data tree counter is tracked via the written public data slots tree
17
18
bool
operator==
(
const
TreeCounters
& other)
const
=
default
;
19
};
20
21
}
// namespace bb::avm2::simulation
aztec_types.hpp
types.hpp
indexed_leaf.hpp
bb::avm2::simulation
Definition
address_derivation_event.hpp:6
bb::avm2::simulation::TreeCounters
Definition
db_types.hpp:12
bb::avm2::simulation::TreeCounters::nullifier_counter
uint32_t nullifier_counter
Definition
db_types.hpp:14
bb::avm2::simulation::TreeCounters::l2_to_l1_msg_counter
uint32_t l2_to_l1_msg_counter
Definition
db_types.hpp:15
bb::avm2::simulation::TreeCounters::note_hash_counter
uint32_t note_hash_counter
Definition
db_types.hpp:13
bb::avm2::simulation::TreeCounters::operator==
bool operator==(const TreeCounters &other) const =default
bb::crypto::merkle_tree::IndexedLeaf< crypto::merkle_tree::NullifierLeafValue >
src
barretenberg
vm2
simulation
lib
db_types.hpp
Generated by
1.9.8