Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
ec_operations.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 <cstdint>
11
12namespace acir_format {
13
14struct EcAdd {
21 // Predicate indicating whether the constraint should be disabled:
22 // - true: the constraint is valid
23 // - false: the constraint is disabled, i.e it must not fail and can return whatever.
25 uint32_t result_x;
26 uint32_t result_y;
28
29 // for serialization, update with any new fields
40 friend bool operator==(EcAdd const& lhs, EcAdd const& rhs) = default;
41};
42
43template <typename Builder>
44void create_ec_add_constraint(Builder& builder, const EcAdd& input, bool has_valid_witness_assignments);
45} // namespace acir_format
AluTraceBuilder builder
Definition alu.test.cpp:123
void create_ec_add_constraint(Builder &builder, const EcAdd &input, bool has_valid_witness_assignments)
friend bool operator==(EcAdd const &lhs, EcAdd const &rhs)=default
WitnessOrConstant< bb::fr > input1_y
WitnessOrConstant< bb::fr > input1_infinite
WitnessOrConstant< bb::fr > input2_y
WitnessOrConstant< bb::fr > input2_infinite
WitnessOrConstant< bb::fr > input1_x
WitnessOrConstant< bb::fr > input2_x
WitnessOrConstant< bb::fr > predicate
MSGPACK_FIELDS(input1_x, input1_y, input1_infinite, input2_x, input2_y, input2_infinite, predicate, result_x, result_y, result_infinite)