Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bytecode_hashing.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <vector>
5
11
12namespace bb::avm2::simulation {
13
28
29} // namespace bb::avm2::simulation
std::shared_ptr< Napi::ThreadSafeFunction > bytecode
void assert_public_bytecode_commitment(const BytecodeId &bytecode_id, const std::vector< uint8_t > &bytecode) override
Verify that the given bytecode_id matches the expected bytecode commitment which is a Poseidon2 hash ...
BytecodeHasher(Poseidon2Interface &hasher, EventEmitterInterface< BytecodeHashingEvent > &events)
EventEmitterInterface< BytecodeHashingEvent > & events
AVM range check gadget for witness generation.