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
6
#include "
barretenberg/vm2/common/field.hpp
"
7
8
namespace
bb::avm2::simulation
{
9
10
class
MerkleCheckInterface
{
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
bb::avm2::simulation::MerkleCheckInterface
Definition
merkle_check.hpp:10
bb::avm2::simulation::MerkleCheckInterface::~MerkleCheckInterface
virtual ~MerkleCheckInterface()=default
bb::avm2::simulation::MerkleCheckInterface::assert_membership
virtual void assert_membership(const FF &leaf_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF &root)=0
bb::avm2::simulation::MerkleCheckInterface::write
virtual FF write(const FF ¤t_value, const FF &new_value, const uint64_t leaf_index, std::span< const FF > sibling_path, const FF ¤t_root)=0
bb::avm2::simulation
Definition
address_derivation_event.hpp:6
bb::avm2::FF
AvmFlavorSettings::FF FF
Definition
field.hpp:10
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
field.hpp
src
barretenberg
vm2
simulation
interfaces
merkle_check.hpp
Generated by
1.9.8