diff options
Diffstat (limited to 'pyecsca/ec/point.py')
| -rw-r--r-- | pyecsca/ec/point.py | 3 |
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}]" |
