ecc

Elliptic Curve Cryptograpy library from scratch in python.
Log | Files | Refs | README | LICENSE

commit c26d35a98ea86eb62f2e8573dd4732daeb6dc05a
parent b5e7a24ff8f2315d00a28584c612c6a13b85d5df
Author: Shivakumar <[email protected]>
Date:   Fri, 25 Jul 2025 19:38:47 +0530

fix the double wrapping of FieldElement in Point

Diffstat:
Mtests/test_keys.py | 2+-
Mtests/test_point.py | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_keys.py b/tests/test_keys.py @@ -47,4 +47,4 @@ def test_keypair_generation_secp256k1(): point = public.point if (point.x, point.y) != (None, None): - assert point.y**2 == point.x**3 + point.a * point.x + point.b + assert point.y**2 == point.x**3 + secp256k1.a * point.x + secp256k1.b diff --git a/tests/test_point.py b/tests/test_point.py @@ -11,7 +11,7 @@ curve = Curve(2, 2, P, G, n) def test_point_on_curve(): p = Point(3, 1, curve) - assert p.y**2 == p.x**3 + p.a * p.x + p.b + assert p.y**2 == p.x**3 + curve.a * p.x + curve.b def test_addition():