mirror of https://github.com/nucypher/pyUmbral.git
Add simple __eq__ method for comparing two Curve objects
parent
f80f128927
commit
e5924f79be
|
@ -1,5 +1,4 @@
|
|||
import pytest
|
||||
|
||||
from umbral.curve import Curve, SECP256R1, SECP256K1, SECP384R1
|
||||
|
||||
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue