From db373fe486fbdca000c870a0504d533b3991481d Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Sat, 18 Oct 2025 14:04:24 +0300 Subject: [PATCH] check if a point lies on the curve in the tests Signed-off-by: Uncle Fatso --- src/MathTester.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MathTester.sol b/src/MathTester.sol index b3435e7..43dcf2c 100644 --- a/src/MathTester.sol +++ b/src/MathTester.sol @@ -88,4 +88,8 @@ contract MathTester { function toAffineProjective(uint256 x, uint256 y, uint256 z) public pure returns (uint256, uint256) { return EllipticCurveProjective.toAffine(x, y, z); } + + function isOnCurve(uint256 x, uint256 y) public pure returns (bool) { + return EllipticCurveProjective.isOnCurve(x, y); + } }