Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
keccak_constraint.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
10#include <array>
11#include <cstdint>
12#include <vector>
13
14namespace acir_format {
15
16struct HashInput {
17 uint32_t witness;
18 uint32_t num_bits;
19
20 // For serialization, update with any new fields
22 friend bool operator==(HashInput const& lhs, HashInput const& rhs) = default;
23};
24
27 std::array<uint32_t, 25> result;
28
29 // For serialization, update with any new fields
31 friend bool operator==(Keccakf1600 const& lhs, Keccakf1600 const& rhs) = default;
32};
33
34template <typename Builder> void create_keccak_permutations(Builder& builder, const Keccakf1600& constraint);
35
36} // namespace acir_format
AluTraceBuilder builder
Definition alu.test.cpp:123
void create_keccak_permutations(Builder &builder, const Keccakf1600 &constraint)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
friend bool operator==(HashInput const &lhs, HashInput const &rhs)=default
MSGPACK_FIELDS(witness, num_bits)
std::array< uint32_t, 25 > result
std::array< WitnessOrConstant< bb::fr >, 25 > state
friend bool operator==(Keccakf1600 const &lhs, Keccakf1600 const &rhs)=default
MSGPACK_FIELDS(state, result)