Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
fake_poseidon2.cpp
Go to the documentation of this file.
2
4
5namespace bb::avm2::simulation {
6
9
10std::array<FF, 4> FakePoseidon2::permutation(const std::array<FF, 4>& input)
11{
12 return Poseidon2Perm::permutation(input);
13}
14
15FF FakePoseidon2::hash(const std::vector<FF>& input)
16{
17 return Poseidon2Hash::hash(input);
18}
19
20} // namespace bb::avm2::simulation
FF hash(const std::vector< FF > &input) override
std::array< FF, 4 > permutation(const std::array< FF, 4 > &input) override
static FF hash(const std::vector< FF > &input)
Hashes a vector of field elements.
Applies the Poseidon2 permutation function from https://eprint.iacr.org/2023/323 ....
static constexpr State permutation(const State &input)
Native form of Poseidon2 permutation from https://eprint.iacr.org/2023/323.
AvmFlavorSettings::FF FF
Definition field.hpp:10