Closed ravirahman closed 3 years ago
In __eq__(self, other) for Bn, EcGroup, and EcPt, the comparison raised an exception if other is not the proper type. Added short-circuiting logic to return False (instead of crashing) if the other type is incorrect. Updated test cases.
__eq__(self, other)
Bn
EcGroup
EcPt
other
Nice one!
In
__eq__(self, other)
forBn
,EcGroup
, andEcPt
, the comparison raised an exception ifother
is not the proper type. Added short-circuiting logic to return False (instead of crashing) if the other type is incorrect. Updated test cases.