Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
calldata_hashing.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <memory>
4
#include <span>
5
#include <vector>
6
7
#include "
barretenberg/vm2/common/field.hpp
"
8
9
namespace
bb::avm2::simulation
{
10
11
class
CalldataHashingInterface
{
12
public
:
13
virtual
~CalldataHashingInterface
() =
default
;
14
virtual
FF
compute_calldata_hash
(
std::span<const FF>
calldata
) = 0;
15
};
16
17
class
CalldataHashingProviderInterface
{
18
public
:
19
virtual
~CalldataHashingProviderInterface
() =
default
;
20
virtual
std::unique_ptr<CalldataHashingInterface>
make_calldata_hasher
(uint32_t
context_id
) = 0;
21
};
22
23
}
// namespace bb::avm2::simulation
bb::avm2::calldata
Definition
calldata.hpp:33
bb::avm2::simulation::CalldataHashingInterface
Definition
calldata_hashing.hpp:11
bb::avm2::simulation::CalldataHashingInterface::compute_calldata_hash
virtual FF compute_calldata_hash(std::span< const FF > calldata)=0
bb::avm2::simulation::CalldataHashingInterface::~CalldataHashingInterface
virtual ~CalldataHashingInterface()=default
bb::avm2::simulation::CalldataHashingProviderInterface
Definition
calldata_hashing.hpp:17
bb::avm2::simulation::CalldataHashingProviderInterface::~CalldataHashingProviderInterface
virtual ~CalldataHashingProviderInterface()=default
bb::avm2::simulation::CalldataHashingProviderInterface::make_calldata_hasher
virtual std::unique_ptr< CalldataHashingInterface > make_calldata_hasher(uint32_t context_id)=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
context_id
uint32_t context_id
Definition
calldata_hashing.test.cpp:40
field.hpp
src
barretenberg
vm2
simulation
interfaces
calldata_hashing.hpp
Generated by
1.9.8