We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When doubling a point on x axis (i.e. y=0), the expected result is the Point at infinity but now it raises 'modular inverse does not exist' exception.
>>> from ecc.curve import Curve25519 >>> from ecc.curve import Point >>> P = Point(x=0, y=0, curve=Curve25519) >>> P + P Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/chang/ecc-pycrypto/ecc/curve.py", line 40, in __add__ return self.curve.add_point(self, other) File "/Users/chang/ecc-pycrypto/ecc/curve.py", line 104, in add_point return self._double_point(P) File "/Users/chang/ecc-pycrypto/ecc/curve.py", line 255, in _double_point s = up * modinv(down, self.p) File "/Users/chang/ecc-pycrypto/ecc/math_utils/mod_inverse.py", line 16, in modinv raise Exception("modular inverse does not exist") Exception: modular inverse does not exist
The text was updated successfully, but these errors were encountered:
lc6chang
Successfully merging a pull request may close this issue.
When doubling a point on x axis (i.e. y=0), the expected result is the Point at infinity but now it raises 'modular inverse does not exist' exception.
The text was updated successfully, but these errors were encountered: