|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Constraints for addition of two points on the Grumpkin curve. More...
#include <ec_operations.hpp>
Public Attributes | |
| WitnessOrConstant< bb::fr > | input1_x |
| WitnessOrConstant< bb::fr > | input1_y |
| WitnessOrConstant< bb::fr > | input2_x |
| WitnessOrConstant< bb::fr > | input2_y |
| WitnessOrConstant< bb::fr > | predicate |
| uint32_t | result_x |
| uint32_t | result_y |
Friends | |
| bool | operator== (EcAdd const &lhs, EcAdd const &rhs)=default |
Constraints for addition of two points on the Grumpkin curve.
EcAdd constraints have 7 components:
The point at infinity is represented by the coordinates (0, 0). The data related to input1 and input2 can either be given by witnesses or constants. However, x and y coordinates pertaining to the same input must be either all witnesses or all constants.
Definition at line 29 of file ec_operations.hpp.
| WitnessOrConstant<bb::fr> acir_format::EcAdd::input1_x |
Definition at line 30 of file ec_operations.hpp.
| WitnessOrConstant<bb::fr> acir_format::EcAdd::input1_y |
Definition at line 31 of file ec_operations.hpp.
| WitnessOrConstant<bb::fr> acir_format::EcAdd::input2_x |
Definition at line 32 of file ec_operations.hpp.
| WitnessOrConstant<bb::fr> acir_format::EcAdd::input2_y |
Definition at line 33 of file ec_operations.hpp.
| WitnessOrConstant<bb::fr> acir_format::EcAdd::predicate |
Definition at line 37 of file ec_operations.hpp.
| uint32_t acir_format::EcAdd::result_x |
Definition at line 38 of file ec_operations.hpp.
| uint32_t acir_format::EcAdd::result_y |
Definition at line 39 of file ec_operations.hpp.