Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
public_data_tree_check.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <span>
4
8
9namespace bb::avm2::simulation {
10
12 public:
13 virtual ~PublicDataTreeCheckInterface() = default;
14 virtual void assert_read(const FF& slot,
16 const FF& value,
17 const PublicDataTreeLeafPreimage& low_leaf_preimage,
18 uint64_t low_leaf_index,
19 std::span<const FF> sibling_path,
20 const AppendOnlyTreeSnapshot& snapshot) = 0;
23 const FF& value,
24 const PublicDataTreeLeafPreimage& low_leaf_preimage,
25 uint64_t low_leaf_index,
26 std::span<const FF> low_leaf_sibling_path,
27 const AppendOnlyTreeSnapshot& prev_snapshot,
28 std::span<const FF> insertion_sibling_path,
29 bool is_protocol_write) = 0;
30};
31
32} // namespace bb::avm2::simulation
virtual AppendOnlyTreeSnapshot write(const FF &slot, const AztecAddress &contract_address, const FF &value, const PublicDataTreeLeafPreimage &low_leaf_preimage, uint64_t low_leaf_index, std::span< const FF > low_leaf_sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot, std::span< const FF > insertion_sibling_path, bool is_protocol_write)=0
virtual void assert_read(const FF &slot, const AztecAddress &contract_address, const FF &value, const PublicDataTreeLeafPreimage &low_leaf_preimage, uint64_t low_leaf_index, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &snapshot)=0
AvmFlavorSettings::FF FF
Definition field.hpp:10
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13