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 <memory>
5#include <span>
6
14
15namespace bb::avm2::simulation {
16
18 public:
23
24 void assert_membership(const FF& leaf_value,
25 const uint64_t leaf_index,
26 std::span<const FF> sibling_path,
27 const FF& root) override;
28
29 FF write(const FF& current_value,
30 const FF& new_value,
31 const uint64_t leaf_index,
32 std::span<const FF> sibling_path,
33 const FF& current_root) override;
34
35 private:
38};
39
40} // namespace bb::avm2::simulation
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) override
void assert_membership(const FF &leaf_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &root) override
MerkleCheck(Poseidon2Interface &poseidon2, EventEmitterInterface< MerkleCheckEvent > &event_emitter)
EventEmitterInterface< MerkleCheckEvent > & events
EventEmitter< DataCopyEvent > event_emitter
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13