Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
merkle.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
7
8namespace bb::avm2::simulation {
9
10FF unconstrained_root_from_path(uint64_t domain_separator,
11 const FF& leaf_value,
12 uint64_t leaf_index,
14
15FF unconstrained_compute_leaf_slot(const AztecAddress& contract_address, const FF& slot);
16
17FF unconstrained_silo_nullifier(const AztecAddress& contract_address, const FF& nullifier);
18
19FF unconstrained_silo_note_hash(const AztecAddress& contract_address, const FF& note_hash);
20
21FF unconstrained_make_unique_note_hash(const FF& siloed_note_hash,
22 const FF& first_nullifier,
23 uint64_t note_hash_counter);
24
25} // namespace bb::avm2::simulation
AVM range check gadget for witness generation.
FF unconstrained_make_unique_note_hash(const FF &siloed_note_hash, const FF &first_nullifier, uint64_t note_hash_counter)
Definition merkle.cpp:45
FF unconstrained_root_from_path(uint64_t domain_separator, const FF &leaf_value, const uint64_t leaf_index, std::span< const FF > path)
Definition merkle.cpp:12
FF unconstrained_compute_leaf_slot(const AztecAddress &contract_address, const FF &slot)
Definition merkle.cpp:30
FF unconstrained_silo_note_hash(const AztecAddress &contract_address, const FF &note_hash)
Definition merkle.cpp:40
FF unconstrained_silo_nullifier(const AztecAddress &contract_address, const FF &nullifier)
Definition merkle.cpp:35
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13