Method doesn't use the class instance and could be converted into a static method
39 y = int(y, 16)
40 return self.curve.point(x, y)
41
42 def encode_point(self, point):43 x = format(point.x, "x")
44 y = format(point.y, "x")
45 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.