Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
poseidon2.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: not started, auditors: [], date: YYYY-MM-DD }
3// external_1: { status: not started, auditors: [], date: YYYY-MM-DD }
4// external_2: { status: not started, auditors: [], date: YYYY-MM-DD }
5// =====================
6
7#pragma once
8
11#include "sponge/sponge.hpp"
12
13namespace bb::crypto {
14
15template <typename Params> class Poseidon2 {
16 public:
17 using FF = typename Params::FF;
18
19 // We choose our rate to be t-1 and capacity to be 1.
21
25 static FF hash(const std::vector<FF>& input);
26};
27
29} // namespace bb::crypto
Implements a cryptographic sponge over prime fields. Implements the sponge specification from the Com...
Definition sponge.hpp:32
typename Params::FF FF
Definition poseidon2.hpp:17
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 ....