Esempio n. 1
0
 def coordinates(self, point):
     if type(point) == elliptic_curve:
         return getXY(self.group, point, True)
Esempio n. 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)
Esempio n. 3
0
 def zr(self, point):
     if type(point) == elliptic_curve:
         return getXY(self.group, point, False)
     return None
Esempio n. 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
Esempio n. 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)
Esempio n. 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
Esempio n. 7
0
 def coordinates(self, point):
     if type(point) == elliptic_curve:
         return getXY(self.group, point, True)
Esempio n. 8
0
 def zr(self, point):
     if type(point) == elliptic_curve:
         return getXY(self.group, point, False)
     return None