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(const FF& leaf_value,
14 const uint64_t leaf_index,
15 std::span<const FF> sibling_path,
16 const FF& root) = 0;
17 virtual FF write(const FF& current_value,
18 const FF& new_value,
19 const uint64_t leaf_index,
20 std::span<const FF> sibling_path,
21 const FF& current_root) = 0;
22};
23
24} // namespace bb::avm2::simulation
virtual void assert_membership(const FF &leaf_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &root)=0
virtual FF write(const FF &current_value, const FF &new_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &current_root)=0
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13