|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <poseidon2_trace.hpp>
Public Member Functions | |
| void | process_hash (const simulation::EventEmitterInterface< simulation::Poseidon2HashEvent >::Container &hash_events, TraceContainer &trace) |
| Processes the hash events for the Poseidon2 hash function. It populates the columns for the poseidon2_hash sub-trace. It generates a row per permutation call, (ca. 1/3 of number of inputs to hash). | |
| void | process_permutation (const simulation::EventEmitterInterface< simulation::Poseidon2PermutationEvent >::Container &perm_events, TraceContainer &trace) |
| Processes the permutation events for the Poseidon2 permutation function. It populates the columns for the poseidon2_perm sub-trace. It generates exactly 1 row per invocation. | |
| void | process_permutation_with_memory (const simulation::EventEmitterInterface< simulation::Poseidon2PermutationMemoryEvent >::Container &perm_mem_events, TraceContainer &trace) |
| Processes the events for the Poseidon2 memory-aware permutation function. It populates the columns for the poseidon2_perm_mem sub-trace. It generates exactly 1 row per invocation. | |
Static Public Attributes | |
| static const InteractionDefinition | interactions |
Definition at line 10 of file poseidon2_trace.hpp.
| void bb::avm2::tracegen::Poseidon2TraceBuilder::process_hash | ( | const simulation::EventEmitterInterface< simulation::Poseidon2HashEvent >::Container & | hash_events, |
| TraceContainer & | trace | ||
| ) |
Processes the hash events for the Poseidon2 hash function. It populates the columns for the poseidon2_hash sub-trace. It generates a row per permutation call, (ca. 1/3 of number of inputs to hash).
| hash_events | The container of hash events to process. |
| trace | The trace container. |
Definition at line 105 of file poseidon2_trace.cpp.
| void bb::avm2::tracegen::Poseidon2TraceBuilder::process_permutation | ( | const simulation::EventEmitterInterface< simulation::Poseidon2PermutationEvent >::Container & | perm_events, |
| TraceContainer & | trace | ||
| ) |
Processes the permutation events for the Poseidon2 permutation function. It populates the columns for the poseidon2_perm sub-trace. It generates exactly 1 row per invocation.
| perm_events | The container of permutation events to process. |
| trace | The trace container. |
Definition at line 173 of file poseidon2_trace.cpp.
| void bb::avm2::tracegen::Poseidon2TraceBuilder::process_permutation_with_memory | ( | const simulation::EventEmitterInterface< simulation::Poseidon2PermutationMemoryEvent >::Container & | perm_mem_events, |
| TraceContainer & | trace | ||
| ) |
Processes the events for the Poseidon2 memory-aware permutation function. It populates the columns for the poseidon2_perm_mem sub-trace. It generates exactly 1 row per invocation.
| perm_mem_events | The container of the memory-aware permutation events to process. |
| trace | The trace container. |
Definition at line 270 of file poseidon2_trace.cpp.
|
static |
Definition at line 22 of file poseidon2_trace.hpp.