aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/ec/point.py
diff options
context:
space:
mode:
authorJ08nY2019-12-22 02:39:49 +0100
committerJ08nY2019-12-22 02:39:49 +0100
commit67fa43ddd53325a6318076356e8ab8c4d76917bc (patch)
treefa345f71ea3b226b1dde0d9c538becf9cf9af116 /pyecsca/ec/point.py
parent77c3141139be0c3f851dff92f8da6f463e29d57c (diff)
downloadpyecsca-67fa43ddd53325a6318076356e8ab8c4d76917bc.tar.gz
pyecsca-67fa43ddd53325a6318076356e8ab8c4d76917bc.tar.zst
pyecsca-67fa43ddd53325a6318076356e8ab8c4d76917bc.zip
Diffstat (limited to 'pyecsca/ec/point.py')
-rw-r--r--pyecsca/ec/point.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyecsca/ec/point.py b/pyecsca/ec/point.py
index 3b0b970..368dd0d 100644
--- a/pyecsca/ec/point.py
+++ b/pyecsca/ec/point.py
@@ -83,6 +83,9 @@ class Point(object):
return False
return self.coords == other.coords
+ def __hash__(self):
+ return hash(self.coords) + 1
+
def __str__(self):
args = ", ".join([f"{key}={val}" for key, val in self.coords.items()])
return f"[{args}]"