Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fake_poseidon2.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4
6
7namespace bb::avm2::simulation {
8
10 public:
11 FakePoseidon2() = default;
12 ~FakePoseidon2() override = default;
13
14 FF hash(const std::vector<FF>& input) override;
15 std::array<FF, 4> permutation(const std::array<FF, 4>& input) override;
16 void permutation([[maybe_unused]] MemoryInterface& memory,
17 [[maybe_unused]] MemoryAddress src_address,
18 [[maybe_unused]] MemoryAddress dst_address) override
19 {
20 throw std::runtime_error("FakePoseidon2 memory aware permutation unimplemented");
21 }
22};
23
24} // namespace bb::avm2::simulation
FF hash(const std::vector< FF > &input) override
std::array< FF, 4 > permutation(const std::array< FF, 4 > &input) override
void permutation(MemoryInterface &memory, MemoryAddress src_address, MemoryAddress dst_address) override
uint32_t MemoryAddress
AvmFlavorSettings::FF FF
Definition field.hpp:10