You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below code should return the point at infinity but instead it will fail to execute, we should update EmbeddedCurvePoint to have an infinity: bool field.
use dep::std::scalar_mul::EmbeddedCurvePoint;use dep::std::println;fnmain(){let g1_x :Field = 0x0000000000000000000000000000000000000000000000000000000000000001;let g1_y :Field = 17631683881184975370165255887551781615748388533673675138860;let point = EmbeddedCurvePoint{x: g1_x,y: g1_y };let negated_point = EmbeddedCurvePoint{x: g1_x,y: -g1_y };let sum = point + negated_point;println(sum);}
The text was updated successfully, but these errors were encountered:
Resolvesnoir-lang/noir#4978
Since elliptic curve addition in barretenberg is already handling the
point at infinity, I simply expose it in the ACIR opcode.
AztecBot
pushed a commit
to AztecProtocol/barretenberg
that referenced
this issue
May 18, 2024
Resolvesnoir-lang/noir#4978
Since elliptic curve addition in barretenberg is already handling the
point at infinity, I simply expose it in the ACIR opcode.
AztecBot
pushed a commit
to AztecProtocol/aztec-nr
that referenced
this issue
May 18, 2024
Resolvesnoir-lang/noir#4978
Since elliptic curve addition in barretenberg is already handling the
point at infinity, I simply expose it in the ACIR opcode.
signorecello
pushed a commit
to AztecProtocol/aztec-packages
that referenced
this issue
May 20, 2024
Resolvesnoir-lang/noir#4978
Since elliptic curve addition in barretenberg is already handling the
point at infinity, I simply expose it in the ACIR opcode.
The below code should return the point at infinity but instead it will fail to execute, we should update
EmbeddedCurvePoint
to have aninfinity: bool
field.The text was updated successfully, but these errors were encountered: