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: Complete, auditors: [Luke], commit: a48c205d6dcd4338f5b83b4fda18bff6015be07b}
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6
7#pragma once
9#include <cstdint>
10
11namespace acir_format {
12
31struct EcAdd {
38 // Predicate indicating whether the constraint should be disabled:
39 // - true: the constraint is valid
40 // - false: the constraint is disabled, i.e it must not fail and can return whatever.
42 uint32_t result_x;
43 uint32_t result_y;
45
46 friend bool operator==(EcAdd const& lhs, EcAdd const& rhs) = default;
47};
48
49template <typename Builder> void create_ec_add_constraint(Builder& builder, const EcAdd& input);
50} // namespace acir_format
AluTraceBuilder builder
Definition alu.test.cpp:124
void create_ec_add_constraint(Builder &builder, const EcAdd &input)
Create constraints for addition of two points on the Grumpkin curve.
Constraints for addition of two points on the Grumpkin curve.
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