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"
11
15
16inline IndexedNullifierLeafType create_indexed_nullifier_leaf(const fr& value, index_t nextIndex, const fr& nextValue)
17{
18 return IndexedNullifierLeafType{ NullifierLeafValue(value), nextIndex, nextValue };
19}
20
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
IndexedNullifierLeafType create_indexed_nullifier_leaf(const fr &value, index_t nextIndex, const fr &nextValue)
Definition fixtures.hpp:16
IndexedPublicDataLeafType create_indexed_public_data_leaf(const fr &slot, const fr &value, index_t nextIndex, const fr &nextValue)
Definition fixtures.hpp:21