예제 #1
0
파일: pbc.py 프로젝트: ace0/pyrelic
 def __eq__(self, other):
     """
     Compares two G1 elements. Also determines if the point is infinity
     (additive identity) when calling "self == 0".
     """
     return _equal(self, other, 0, librelic.g2_cmp_abi)
예제 #2
0
파일: pbc.py 프로젝트: ace0/pyrelic
 def __eq__(self, other):
     """
     Compares two Gt elements. Also determines if the point is the unity
     (multiplicative identity) element of Gt when calling "self == 1".
     """
     return _equal(self, other, 1, librelic.gt_cmp_abi)