Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fixtures.hpp
Go to the documentation of this file.
1
// === AUDIT STATUS ===
2
// internal: { status: not started, auditors: [], date: YYYY-MM-DD }
3
// external_1: { status: not started, auditors: [], date: YYYY-MM-DD }
4
// external_2: { status: not started, auditors: [], date: YYYY-MM-DD }
5
// =====================
6
7
#pragma once
8
9
#include "../types.hpp"
10
#include "
barretenberg/crypto/merkle_tree/indexed_tree/indexed_leaf.hpp
"
11
12
namespace
bb::crypto::merkle_tree
{
13
using
IndexedNullifierLeafType
=
IndexedLeaf<NullifierLeafValue>
;
14
using
IndexedPublicDataLeafType
=
IndexedLeaf<PublicDataLeafValue>
;
15
16
inline
IndexedNullifierLeafType
create_indexed_nullifier_leaf
(
const
fr
&
value
,
index_t
nextIndex,
const
fr
& nextValue)
17
{
18
return
IndexedNullifierLeafType
{
NullifierLeafValue
(
value
), nextIndex, nextValue };
19
}
20
21
inline
IndexedPublicDataLeafType
create_indexed_public_data_leaf
(
const
fr
&
slot
,
22
const
fr
&
value
,
23
index_t
nextIndex,
24
const
fr
& nextValue)
25
{
26
return
IndexedPublicDataLeafType
{
PublicDataLeafValue
(
slot
,
value
), nextIndex, nextValue };
27
}
28
}
// namespace bb::crypto::merkle_tree
indexed_leaf.hpp
bb::crypto::merkle_tree
Definition
content_addressed_append_only_tree.hpp:33
bb::crypto::merkle_tree::create_indexed_nullifier_leaf
IndexedNullifierLeafType create_indexed_nullifier_leaf(const fr &value, index_t nextIndex, const fr &nextValue)
Definition
fixtures.hpp:16
bb::crypto::merkle_tree::create_indexed_public_data_leaf
IndexedPublicDataLeafType create_indexed_public_data_leaf(const fr &slot, const fr &value, index_t nextIndex, const fr &nextValue)
Definition
fixtures.hpp:21
bb::crypto::merkle_tree::index_t
uint64_t index_t
Definition
types.hpp:18
slot
FF slot
Definition
public_data_tree.test.cpp:95
value
FF value
Definition
public_data_tree.test.cpp:96
bb::crypto::merkle_tree::IndexedLeaf< NullifierLeafValue >
bb::crypto::merkle_tree::NullifierLeafValue
Definition
indexed_leaf.hpp:17
bb::crypto::merkle_tree::PublicDataLeafValue
Definition
indexed_leaf.hpp:75
bb::field< Bn254FrParams >
src
barretenberg
crypto
merkle_tree
indexed_tree
fixtures.hpp
Generated by
1.9.8