Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::avm2::simulation::CalldataHasher Class Reference

#include <calldata_hashing.hpp>

Inheritance diagram for bb::avm2::simulation::CalldataHasher:
bb::avm2::simulation::CalldataHashingInterface

Public Member Functions

 CalldataHasher (uint32_t context_id, Poseidon2Interface &hasher, EventEmitterInterface< CalldataEvent > &events)
 
FF compute_calldata_hash (std::span< const FF > calldata) override
 
- Public Member Functions inherited from bb::avm2::simulation::CalldataHashingInterface
virtual ~CalldataHashingInterface ()=default
 

Private Attributes

uint32_t context_id
 
EventEmitterInterface< CalldataEvent > & events
 
Poseidon2Interfacehasher
 

Detailed Description

Definition at line 18 of file calldata_hashing.hpp.

Constructor & Destructor Documentation

◆ CalldataHasher()

bb::avm2::simulation::CalldataHasher::CalldataHasher ( uint32_t  context_id,
Poseidon2Interface hasher,
EventEmitterInterface< CalldataEvent > &  events 
)
inline

Definition at line 20 of file calldata_hashing.hpp.

Member Function Documentation

◆ compute_calldata_hash()

FF bb::avm2::simulation::CalldataHasher::compute_calldata_hash ( std::span< const FF calldata)
overridevirtual

Member Data Documentation

◆ context_id

uint32_t bb::avm2::simulation::CalldataHasher::context_id
private

Definition at line 29 of file calldata_hashing.hpp.

◆ events

EventEmitterInterface<CalldataEvent>& bb::avm2::simulation::CalldataHasher::events
private

Definition at line 30 of file calldata_hashing.hpp.

◆ hasher

Poseidon2Interface& bb::avm2::simulation::CalldataHasher::hasher
private

Definition at line 31 of file calldata_hashing.hpp.


The documentation for this class was generated from the following files: