Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
poseidon.hpp
Go to the documentation of this file.
1#ifdef STARKNET_GARAGA_FLAVORS
2#pragma once
3
5#include "poseidon_params.hpp"
7
8namespace bb::starknet::crypto {
9
10template <typename Params> class Poseidon {
11 public:
12 using FF = typename Params::FF;
13
14 using Sponge = bb::crypto::FieldSponge<FF, Params::t - 1, 1, Params::t, PoseidonPermutation<Params>>;
15
16 static FF hash(const std::vector<FF>& input);
17
18 static FF hash(const std::vector<FF>& input, FF iv);
19};
20
21extern template class Poseidon<PoseidonStark252BaseFieldParams>;
22
23} // namespace bb::starknet::crypto
24#endif
bb::fr FF
Implements a cryptographic sponge over prime fields. Implements the sponge specification from the Com...
Definition sponge.hpp:32
void hash(State &state) noexcept