detailed error message
@@ -58,7 +58,7 @@ class EllipticCurve:
def assertPointCoordinate(self, c: int) -> None:
assert type(c) == int, "non-int point coordinate"
assert 0 <= c, "point coordinate %s < 0" % c
- assert c < self.__p, "point coordinate %s >= prime" % c
+ assert c < self.__p, "point coordinate %s >= prime %s" % (c, p)
def __y2(self, x: int) -> int:
self.assertPointCoordinate(x)
