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
12
13#include "../../primitives/circuit_builders/circuit_builders.hpp"
14
15namespace bb::stdlib {
16
23template <typename Builder> class poseidon2 {
24
25 private:
30 // We choose our rate to be t-1 and capacity to be 1.
32
33 public:
36};
37
38} // namespace bb::stdlib
Implements the circuit form of a cryptographic sponge over prime fields. Implements the sponge specif...
Definition sponge.hpp:34
Implements boolean logic in-circuit.
Definition bool.hpp:59
Represents a dynamic array of bytes in-circuit.
stdlib class that evaluates in-circuit poseidon2 hashes, consistent with behavior in crypto::poseidon...
Definition poseidon2.hpp:23
static field_ct hash_buffer(Builder &builder, const stdlib::byte_array< Builder > &input)
Poseidon2Permutation< Params, Builder > Permutation
Definition poseidon2.hpp:29
static field_ct hash(Builder &builder, const std::vector< field_ct > &in)
Hash a vector of field_ct.
Definition poseidon2.cpp:16
AluTraceBuilder builder
Definition alu.test.cpp:123
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13