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/coordinates.py | |
| parent | 77c3141139be0c3f851dff92f8da6f463e29d57c (diff) | |
| download | pyecsca-67fa43ddd53325a6318076356e8ab8c4d76917bc.tar.gz pyecsca-67fa43ddd53325a6318076356e8ab8c4d76917bc.tar.zst pyecsca-67fa43ddd53325a6318076356e8ab8c4d76917bc.zip | |
Diffstat (limited to 'pyecsca/ec/coordinates.py')
| -rw-r--r-- | pyecsca/ec/coordinates.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyecsca/ec/coordinates.py b/pyecsca/ec/coordinates.py index 585fb28..285e54b 100644 --- a/pyecsca/ec/coordinates.py +++ b/pyecsca/ec/coordinates.py @@ -100,3 +100,6 @@ class EFDCoordinateModel(CoordinateModel): if not isinstance(other, EFDCoordinateModel): return False return self.curve_model == other.curve_model and self.name == other.name + + def __hash__(self): + return hash(self.curve_model) + hash(self.name) |
