diff options
| author | J08nY | 2019-12-22 02:39:49 +0100 |
|---|---|---|
| committer | J08nY | 2019-12-22 02:39:49 +0100 |
| commit | 67fa43ddd53325a6318076356e8ab8c4d76917bc (patch) | |
| tree | fa345f71ea3b226b1dde0d9c538becf9cf9af116 /pyecsca/ec/point.py | |
| parent | 77c3141139be0c3f851dff92f8da6f463e29d57c (diff) | |
| download | pyecsca-67fa43ddd53325a6318076356e8ab8c4d76917bc.tar.gz pyecsca-67fa43ddd53325a6318076356e8ab8c4d76917bc.tar.zst pyecsca-67fa43ddd53325a6318076356e8ab8c4d76917bc.zip | |
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}]" |
