Docstring missing for
encode_point
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}"
Docstring missing for
decode_point
33 else:
34 raise ValueError("Invalid operation")
35
36 def decode_point(self, point):37 x, y = point.split(",")
38 x = int(x, 16)
39 y = int(y, 16)
Docstring missing for
perform_operation
15 public_key = private_key.public_key()
16 return private_key, public_key
17
18 def perform_operation(self, operation, params):19 if operation == "add":
20 point1 = self.decode_point(params["point1"])
21 point2 = self.decode_point(params["point2"])
Docstring missing for
generate_key_pair
10 self.curve = ec.SECP256K1()
11 self.backend = default_backend()
12
13 def generate_key_pair(self):14 private_key = ec.generate_private_key(self.curve, self.backend)
15 public_key = private_key.public_key()
16 return private_key, public_key
Description
The module/function docstring is missing.
If you want to ignore this, you can configure this in the .deepsource.toml
file. Please refer to docs for available options.