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
11
12namespace bb::stdlib {
13
20template <typename Builder> class poseidon2 {
21
22 private:
27
28 public:
29 static field_ct hash(const std::vector<field_ct>& in);
30};
31
32} // namespace bb::stdlib
Implements the circuit form of a cryptographic sponge over prime fields.
Definition sponge.hpp:24
Circuit form of Poseidon2 permutation from https://eprint.iacr.org/2023/323.
stdlib class that evaluates in-circuit poseidon2 hashes, consistent with behavior in crypto::poseidon...
Definition poseidon2.hpp:20
static field_ct hash(const std::vector< field_ct > &in)
Hash a vector of field_ct.
Definition poseidon2.cpp:13
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13