Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
l1_to_l2_message_tree_check.cpp
Go to the documentation of this file.
2
5
6namespace bb::avm2::simulation {
7
8bool L1ToL2MessageTreeCheck::exists(const FF& msg_hash,
9 const FF& leaf_value,
10 uint64_t leaf_index,
11 std::span<const FF> sibling_path,
12 const AppendOnlyTreeSnapshot& snapshot)
13{
14 merkle_check.assert_membership(leaf_value, leaf_index, sibling_path, snapshot.root);
16 .msg_hash = msg_hash, .leaf_value = leaf_value, .leaf_index = leaf_index, .snapshot = snapshot });
17 return msg_hash == leaf_value;
18}
19
20} // namespace bb::avm2::simulation
bool exists(const FF &msg_hash, const FF &leaf_value, uint64_t leaf_index, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &snapshot) override
EventEmitterInterface< L1ToL2MessageTreeCheckEvent > & events
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13