Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
range_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/common/serialize.hpp
"
9
#include "
barretenberg/serialize/msgpack.hpp
"
10
#include <cstdint>
11
12
namespace
acir_format
{
13
14
struct
RangeConstraint
{
15
uint32_t
witness
;
16
uint32_t
num_bits
;
17
18
// for serialization, update with any new fields
19
MSGPACK_FIELDS
(
witness
,
num_bits
);
20
friend
bool
operator==
(
RangeConstraint
const
& lhs,
RangeConstraint
const
& rhs) =
default
;
21
};
22
23
}
// namespace acir_format
msgpack.hpp
acir_format
Definition
acir_format.cpp:34
serialize.hpp
acir_format::RangeConstraint
Definition
range_constraint.hpp:14
acir_format::RangeConstraint::witness
uint32_t witness
Definition
range_constraint.hpp:15
acir_format::RangeConstraint::MSGPACK_FIELDS
MSGPACK_FIELDS(witness, num_bits)
acir_format::RangeConstraint::operator==
friend bool operator==(RangeConstraint const &lhs, RangeConstraint const &rhs)=default
acir_format::RangeConstraint::num_bits
uint32_t num_bits
Definition
range_constraint.hpp:16
src
barretenberg
dsl
acir_format
range_constraint.hpp
Generated by
1.9.8