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
8
#include "
barretenberg/dsl/acir_format/witness_constant.hpp
"
9
#include "
barretenberg/serialize/msgpack.hpp
"
10
#include <array>
11
#include <cstdint>
12
#include <vector>
13
14
namespace
acir_format
{
15
16
struct
Keccakf1600
{
17
std::array<WitnessOrConstant<bb::fr>
, 25>
state
;
18
std::array<uint32_t, 25>
result
;
19
20
// For serialization, update with any new fields
21
MSGPACK_FIELDS
(
state
,
result
);
22
friend
bool
operator==
(
Keccakf1600
const
& lhs,
Keccakf1600
const
& rhs) =
default
;
23
};
24
25
template
<
typename
Builder>
26
void
create_keccak_permutations_constraints
(
Builder
&
builder
,
const
Keccakf1600
& constraint);
27
28
}
// namespace acir_format
bb::ECCVMCircuitBuilder
Definition
eccvm_circuit_builder.hpp:24
builder
AluTraceBuilder builder
Definition
alu.test.cpp:124
msgpack.hpp
acir_format
Definition
acir_format.cpp:31
acir_format::create_keccak_permutations_constraints
void create_keccak_permutations_constraints(Builder &builder, const Keccakf1600 &constraint)
Definition
keccak_constraint.cpp:14
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
acir_format::Keccakf1600
Definition
keccak_constraint.hpp:16
acir_format::Keccakf1600::result
std::array< uint32_t, 25 > result
Definition
keccak_constraint.hpp:18
acir_format::Keccakf1600::state
std::array< WitnessOrConstant< bb::fr >, 25 > state
Definition
keccak_constraint.hpp:17
acir_format::Keccakf1600::operator==
friend bool operator==(Keccakf1600 const &lhs, Keccakf1600 const &rhs)=default
acir_format::Keccakf1600::MSGPACK_FIELDS
MSGPACK_FIELDS(state, result)
witness_constant.hpp
src
barretenberg
dsl
acir_format
keccak_constraint.hpp
Generated by
1.9.8