Closed ghost closed 4 years ago
Good catch, v2.1.2
broke this when it fixed the C extension's handling of the point at infinity. (The joys of Weierstrass curves, this is why the Montgomery curves like Curve25519 are better for implementors and more resistant to side channels). Fixed in commit a591b79 (version v2.1.3).
➜ ~ pip install fastecdsa==2.1.3
Collecting fastecdsa==2.1.3
Using cached fastecdsa-2.1.3-cp38-cp38-macosx_10_14_x86_64.whl (53 kB)
Installing collected packages: fastecdsa
Successfully installed fastecdsa-2.1.3
➜ ~ python -c 'from fastecdsa.curve import secp256k1; secp256k1.q * secp256k1.G'
➜ ~
Thanks!
Multiplying the generator with the order of the curve gives a ValueError: