Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
poseidon2.cpp
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
8namespace bb::stdlib {
9
13template <typename C> field_t<C> poseidon2<C>::hash(const std::vector<field_ct>& inputs)
14{
15
16 /* Run the sponge by absorbing all the input and squeezing one output.
17 *
18 */
19 return Sponge::hash_internal(inputs);
20}
21
24
25} // namespace bb::stdlib
static FF hash(const std::vector< FF > &input)
Hashes a vector of field elements.
stdlib class that evaluates in-circuit poseidon2 hashes, consistent with behavior in crypto::poseidon...
Definition poseidon2.hpp:20
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13