MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / _set_keys

Method _set_keys

src/pyelliptic/ecc.py:67–76  ·  view source on GitHub ↗
(self, pubkey_x, pubkey_y, privkey)

Source from the content-addressed store, hash-verified

65 self.privkey, self.pubkey_x, self.pubkey_y = self._generate()
66
67 def _set_keys(self, pubkey_x, pubkey_y, privkey):
68 if self.raw_check_key(privkey, pubkey_x, pubkey_y) < 0:
69 self.pubkey_x = None
70 self.pubkey_y = None
71 self.privkey = None
72 raise Exception("Bad ECC keys ...")
73 else:
74 self.pubkey_x = pubkey_x
75 self.pubkey_y = pubkey_y
76 self.privkey = privkey
77
78 @staticmethod
79 def get_curves():

Callers 1

__init__Method · 0.95

Calls 1

raw_check_keyMethod · 0.95

Tested by

no test coverage detected