gnark
gnark copied to clipboard
Handle the infinity point in EVM precompiles
The infinity point is represented by (0,0)
in the EVM:
- [x] handle the edge cases in ECADD (
AddUnified
) that involve or should return(0,0)
. - [x] handle the edge cases in ECMUL (
ScalarMul
andScalarMulBase
) that involve or should return0
and(0,0)
. - [ ] handle the edge cases in ECPAIR that involve
(0,0)
. - [x] handle the edge cases in
IsOnCurve/Twist
that involve(0,0)
.