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

#include <bytecode_hashing.hpp>

Inheritance diagram for bb::avm2::simulation::BytecodeHasher:
bb::avm2::simulation::BytecodeHashingInterface

Public Member Functions

 BytecodeHasher (Poseidon2Interface &hasher, EventEmitterInterface< BytecodeHashingEvent > &events)
 
FF compute_public_bytecode_commitment (const BytecodeId bytecode_id, const std::vector< uint8_t > &bytecode) override
 
- Public Member Functions inherited from bb::avm2::simulation::BytecodeHashingInterface
virtual ~BytecodeHashingInterface ()=default
 

Private Attributes

EventEmitterInterface< BytecodeHashingEvent > & events
 
Poseidon2Interfacehasher
 

Detailed Description

Definition at line 18 of file bytecode_hashing.hpp.

Constructor & Destructor Documentation

◆ BytecodeHasher()

bb::avm2::simulation::BytecodeHasher::BytecodeHasher ( Poseidon2Interface hasher,
EventEmitterInterface< BytecodeHashingEvent > &  events 
)
inline

Definition at line 20 of file bytecode_hashing.hpp.

Member Function Documentation

◆ compute_public_bytecode_commitment()

FF bb::avm2::simulation::BytecodeHasher::compute_public_bytecode_commitment ( const BytecodeId  bytecode_id,
const std::vector< uint8_t > &  bytecode 
)
overridevirtual

Member Data Documentation

◆ events

EventEmitterInterface<BytecodeHashingEvent>& bb::avm2::simulation::BytecodeHasher::events
private

Definition at line 28 of file bytecode_hashing.hpp.

◆ hasher

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

Definition at line 29 of file bytecode_hashing.hpp.


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