Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fixtures.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "../types.hpp"
4
#include "
barretenberg/crypto/merkle_tree/indexed_tree/indexed_leaf.hpp
"
5
6
namespace
bb::crypto::merkle_tree
{
7
using
IndexedNullifierLeafType
=
IndexedLeaf<NullifierLeafValue>
;
8
using
IndexedPublicDataLeafType
=
IndexedLeaf<PublicDataLeafValue>
;
9
10
inline
IndexedNullifierLeafType
create_indexed_nullifier_leaf
(
const
fr
&
value
,
index_t
nextIndex,
const
fr
& nextValue)
11
{
12
return
IndexedNullifierLeafType
{
NullifierLeafValue
(
value
), nextIndex, nextValue };
13
}
14
15
inline
IndexedPublicDataLeafType
create_indexed_public_data_leaf
(
const
fr
&
slot
,
16
const
fr
&
value
,
17
index_t
nextIndex,
18
const
fr
& nextValue)
19
{
20
return
IndexedPublicDataLeafType
{
PublicDataLeafValue
(
slot
,
value
), nextIndex, nextValue };
21
}
22
}
// 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:10
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:15
bb::crypto::merkle_tree::index_t
uint64_t index_t
Definition
types.hpp:18
slot
FF slot
Definition
public_data_tree.test.cpp:96
value
FF value
Definition
public_data_tree.test.cpp:97
bb::crypto::merkle_tree::IndexedLeaf
Definition
indexed_leaf.hpp:137
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