14 FF curr_value = leaf_value;
15 uint64_t curr_index = leaf_index;
16 for (
const auto& i : path) {
17 bool index_is_even = (curr_index % 2 == 0);
42 const FF& first_nullifier,
43 uint64_t note_hash_counter)
#define GENERATOR_INDEX__PUBLIC_LEAF_INDEX
#define GENERATOR_INDEX__NOTE_HASH_NONCE
#define GENERATOR_INDEX__OUTER_NULLIFIER
#define GENERATOR_INDEX__SILOED_NOTE_HASH
#define GENERATOR_INDEX__UNIQUE_NOTE_HASH
static FF hash(const std::vector< FF > &input)
Hashes a vector of field elements.
AztecAddress contract_address
FF unconstrained_make_unique_note_hash(const FF &siloed_note_hash, const FF &first_nullifier, uint64_t note_hash_counter)
FF unconstrained_root_from_path(const FF &leaf_value, const uint64_t leaf_index, std::span< const FF > path)
FF unconstrained_compute_leaf_slot(const AztecAddress &contract_address, const FF &slot)
FF unconstrained_silo_note_hash(const AztecAddress &contract_address, const FF ¬e_hash)
FF unconstrained_silo_nullifier(const AztecAddress &contract_address, const FF &nullifier)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept