EspressoSystems / solidity-bn254

GNU General Public License v3.0
2 stars 0 forks source link

fix: g1Deserialize should revert on non-canonical x coordinate #16

Closed alxiong closed 3 months ago

alxiong commented 3 months ago

Closes https://github.com/EspressoSystems/espresso-sequencer/issues/1730

This PR:

implemented the suggestion:

Suggestion: We suggest that the function reverts if the x-coordinate is not canonical.

and add tests