Skip to content

Commit

Permalink
ensure CurveEdTw hashability
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Dec 28, 2023
1 parent 39ee100 commit 4b12f51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ecdsa/test_ellipticcurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ def test___str___with_cofactor(self):
c = CurveEdTw(23, 1, 1, 4)
self.assertEqual(str(c), "CurveEdTw(p=23, a=1, d=1, h=4)")

def test_usability_in_a_hashed_collection_curves(self):
{self.c_23: None}

def test_hashability_curves(self):
hash(self.c_23)


class TestPoint(unittest.TestCase):
@classmethod
Expand Down

0 comments on commit 4b12f51

Please sign in to comment.