Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
sha256_constraint.hpp
Go to the documentation of this file.
1
// === AUDIT STATUS ===
2
// internal: { status: Complete, auditors: [Luke], commit: }
3
// external_1: { status: not started, auditors: [], commit: }
4
// external_2: { status: not started, auditors: [], commit: }
5
// =====================
6
7
#pragma once
8
#include "
barretenberg/dsl/acir_format/witness_constant.hpp
"
9
#include <array>
10
#include <cstdint>
11
12
namespace
acir_format
{
13
14
struct
Sha256Compression
{
15
std::array<WitnessOrConstant<bb::fr>
, 16>
inputs
;
16
std::array<WitnessOrConstant<bb::fr>
, 8>
hash_values
;
17
std::array<uint32_t, 8>
result
;
18
19
friend
bool
operator==
(
Sha256Compression
const
& lhs,
Sha256Compression
const
& rhs) =
default
;
20
};
21
22
template
<
typename
Builder>
23
void
create_sha256_compression_constraints
(
Builder
&
builder
,
const
Sha256Compression
& constraint);
24
25
}
// namespace acir_format
bb::ECCVMCircuitBuilder
Definition
eccvm_circuit_builder.hpp:24
builder
AluTraceBuilder builder
Definition
alu.test.cpp:124
acir_format
Definition
acir_format.cpp:30
acir_format::create_sha256_compression_constraints
void create_sha256_compression_constraints(Builder &builder, const Sha256Compression &constraint)
Definition
sha256_constraint.cpp:14
std::get
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition
tuple.hpp:13
acir_format::Sha256Compression
Definition
sha256_constraint.hpp:14
acir_format::Sha256Compression::hash_values
std::array< WitnessOrConstant< bb::fr >, 8 > hash_values
Definition
sha256_constraint.hpp:16
acir_format::Sha256Compression::result
std::array< uint32_t, 8 > result
Definition
sha256_constraint.hpp:17
acir_format::Sha256Compression::inputs
std::array< WitnessOrConstant< bb::fr >, 16 > inputs
Definition
sha256_constraint.hpp:15
acir_format::Sha256Compression::operator==
friend bool operator==(Sha256Compression const &lhs, Sha256Compression const &rhs)=default
witness_constant.hpp
src
barretenberg
dsl
acir_format
sha256_constraint.hpp
Generated by
1.9.8