Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
poseidon2_event.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <vector>
5
8
9namespace bb::avm2::simulation {
10
11struct Poseidon2Exception : public std::runtime_error {
12 Poseidon2Exception(const std::string& message)
13 : std::runtime_error("Poseidon2Exception: " + message)
14 {}
15};
16
18 std::vector<FF> inputs; // This input is padded to a multiple of 3
21};
22
24 std::array<FF, 4> input;
25 std::array<FF, 4> output;
26};
27
29 uint32_t space_id = 0;
30 uint32_t execution_clk = 0;
33 // Need to know the tag value for error handling
35 std::array<FF, 4> output;
36};
37
38} // namespace bb::avm2::simulation
uint32_t MemoryAddress
AvmFlavorSettings::FF FF
Definition field.hpp:10
STL namespace.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
Poseidon2Exception(const std::string &message)
std::vector< std::array< FF, 4 > > intermediate_states