Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
mock_nullifier_tree_check.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <gmock/gmock.h>
4
8
9namespace bb::avm2::simulation {
10
12 public:
15
18 (const FF& nullifier,
20 bool exists,
21 const NullifierTreeLeafPreimage& low_leaf_preimage,
22 uint64_t low_leaf_index,
23 std::span<const FF> sibling_path,
24 const AppendOnlyTreeSnapshot& snapshot),
25 (override));
26
28 write,
29 (const FF& nullifier,
31 uint64_t nullifier_counter,
32 const NullifierTreeLeafPreimage& low_leaf_preimage,
33 uint64_t low_leaf_index,
34 std::span<const FF> low_leaf_sibling_path,
35 const AppendOnlyTreeSnapshot& prev_snapshot,
36 std::optional<std::span<const FF>> insertion_sibling_path),
37 (override));
38};
39
40} // namespace bb::avm2::simulation
MOCK_METHOD(AppendOnlyTreeSnapshot, write,(const FF &nullifier, std::optional< AztecAddress > contract_address, uint64_t nullifier_counter, const NullifierTreeLeafPreimage &low_leaf_preimage, uint64_t low_leaf_index, std::span< const FF > low_leaf_sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot, std::optional< std::span< const FF > > insertion_sibling_path),(override))
MOCK_METHOD(void, assert_read,(const FF &nullifier, std::optional< AztecAddress > contract_address, bool exists, const NullifierTreeLeafPreimage &low_leaf_preimage, uint64_t low_leaf_index, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &snapshot),(override))
virtual AppendOnlyTreeSnapshot write(const FF &nullifier, std::optional< AztecAddress > contract_address, uint64_t nullifier_counter, const NullifierTreeLeafPreimage &low_leaf_preimage, uint64_t low_leaf_index, std::span< const FF > low_leaf_sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot, std::optional< std::span< const FF > > insertion_sibling_path)=0
virtual void assert_read(const FF &nullifier, std::optional< AztecAddress > contract_address, bool exists, const NullifierTreeLeafPreimage &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