Method doesn't use the class instance and could be converted into a static method
37 y = int(y, 16)
38 return self.curve.point(x, y)
39
40 def encode_point(self, point):41 x = format(point.x, "x")
42 y = format(point.y, "x")
43 return f"{x},{y}"
Description
The method doesn't use its bound instance. Decorate this method with @staticmethod
decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.