Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
merkle_check.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <span>
5
7
8namespace bb::avm2::simulation {
9
11 public:
12 virtual ~MerkleCheckInterface() = default;
13 virtual void assert_membership(uint64_t domain_separator,
14 const FF& leaf_value,
15 uint64_t leaf_index,
16 std::span<const FF> sibling_path,
17 const FF& root) = 0;
18 virtual FF write(uint64_t domain_separator,
19 const FF& current_value,
20 const FF& new_value,
21 uint64_t leaf_index,
22 std::span<const FF> sibling_path,
23 const FF& current_root) = 0;
24};
25
26} // namespace bb::avm2::simulation
virtual void assert_membership(uint64_t domain_separator, const FF &leaf_value, uint64_t leaf_index, std::span< const FF > sibling_path, const FF &root)=0
virtual FF write(uint64_t domain_separator, const FF &current_value, const FF &new_value, uint64_t leaf_index, std::span< const FF > sibling_path, const FF &current_root)=0
AVM range check gadget for witness generation.
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13