Add simple __eq__ method for comparing two Curve objects

pull/178/head
tuxxy 2018-06-27 15:23:28 -06:00
parent f80f128927
commit e5924f79be
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,4 @@
import pytest
from umbral.curve import Curve, SECP256R1, SECP256K1, SECP384R1

View File

@ -33,6 +33,9 @@ class Curve:
def supported_curves(self):
return self.__AVAIL_CURVES
def __eq__(self, other):
return self.curve_nid == other.curve_nid
class SECP256R1(Curve):
"""