|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Native Poseidon2 hash function implementation. More...
#include <poseidon2.hpp>
Public Types | |
| using | FF = typename Params::FF |
| using | Sponge = FieldSponge< FF, Params::t - 1, 1, Params::t, Poseidon2Permutation< Params > > |
Static Public Member Functions | |
| static FF | hash (const std::vector< FF > &input) |
| Hashes a vector of field elements. | |
Native Poseidon2 hash function implementation.
This implementation is differentially tested against the stdlib (circuit) implementation. The stdlib tests (stdlib/hash/poseidon2/poseidon2.test.cpp) validate both implementations against independent test vectors from https://github.com/zemse/poseidon2-evm and verify that native and circuit implementations produce identical outputs.
Definition at line 22 of file poseidon2.hpp.
| using bb::crypto::Poseidon2< Params >::FF = typename Params::FF |
Definition at line 24 of file poseidon2.hpp.
| using bb::crypto::Poseidon2< Params >::Sponge = FieldSponge<FF, Params::t - 1, 1, Params::t, Poseidon2Permutation<Params> > |
Definition at line 27 of file poseidon2.hpp.
|
static |
Hashes a vector of field elements.