From f1738f3e443bd629499b6df8620974ed2d035eb5 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Thu, 1 Jun 2023 00:13:59 -0700 Subject: [PATCH] make sure GF2p8 is hashable.. --- shamirss.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shamirss.py b/shamirss.py index bc92ef9..d6a2f88 100644 --- a/shamirss.py +++ b/shamirss.py @@ -370,6 +370,9 @@ class TestShamirSS(unittest.TestCase): b = GF2p8(random.randint(0, 255)) c = GF2p8(random.randint(0, 255)) + # Hashable + { a, b, c } + self.assertEqual(a * 0, 0) # Identity