def coordinates(self, point): if type(point) == elliptic_curve: return getXY(self.group, point, True)
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)
def zr(self, point): if type(point) == elliptic_curve: return getXY(self.group, point, False) return None
def zr(self, point): """get the X coordinate only""" if type(point) == ec_element: return getXY(self.ec_group, point, False) return None