Beispiel #1
0
 def coordinates(self, point):
     if type(point) == elliptic_curve:
         return getXY(self.group, point, True)
Beispiel #2
0
 def coordinates(self, point):
     """get the X and Y coordinates of an EC point"""
     if type(point) == ec_element:
         return getXY(self.ec_group, point, True)
Beispiel #3
0
 def zr(self, point):
     if type(point) == elliptic_curve:
         return getXY(self.group, point, False)
     return None
Beispiel #4
0
 def zr(self, point):
     """get the X coordinate only"""
     if type(point) == ec_element:
         return getXY(self.ec_group, point, False)
     return None
Beispiel #5
0
 def coordinates(self, point):
     """get the X and Y coordinates of an EC point"""
     if type(point) == ec_element:
         return getXY(self.ec_group, point, True)
Beispiel #6
0
 def zr(self, point):
     """get the X coordinate only"""
     if type(point) == ec_element:
         return getXY(self.ec_group, point, False)
     return None
Beispiel #7
0
 def coordinates(self, point):
     if type(point) == elliptic_curve:
         return getXY(self.group, point, True)
Beispiel #8
0
 def zr(self, point):
     if type(point) == elliptic_curve:
         return getXY(self.group, point, False)
     return None