#include <calldata_hashing.hpp>
Definition at line 15 of file calldata_hashing.hpp.
◆ CalldataHasher()
◆ assert_calldata_hash()
| void bb::avm2::simulation::CalldataHasher::assert_calldata_hash |
( |
const FF & |
cd_hash, |
|
|
std::span< const FF > |
calldata |
|
) |
| |
|
overridevirtual |
Assert that the given calldata hashes to the expected hash, and emit a calldata event.
Prepends the public calldata domain separator, hashes via Poseidon2, and asserts the result matches the provided hash. Emits a CalldataEvent for trace generation.
- Parameters
-
| cd_hash | The expected calldata hash. |
| calldata | The calldata fields to hash. |
- Note
- Asserts that the computed Poseidon2 hash of the calldata (with domain separator) equals cd_hash.
Implements bb::avm2::simulation::CalldataHashingInterface.
Definition at line 20 of file calldata_hashing.cpp.
◆ context_id
| uint32_t bb::avm2::simulation::CalldataHasher::context_id |
|
private |
◆ events
◆ hasher
The documentation for this class was generated from the following files: