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

Method get_pubkey

src/pyelliptic/ecc.py:91–101  ·  view source on GitHub ↗

High level function which returns : curve(2) + len_of_pubkeyX(2) + pubkeyX + len_of_pubkeyY + pubkeyY

(self)

Source from the content-addressed store, hash-verified

89 return self.curve
90
91 def get_pubkey(self):
92 """
93 High level function which returns :
94 curve(2) + len_of_pubkeyX(2) + pubkeyX + len_of_pubkeyY + pubkeyY
95 """
96 return b''.join((pack('!H', self.curve),
97 pack('!H', len(self.pubkey_x)),
98 self.pubkey_x,
99 pack('!H', len(self.pubkey_y)),
100 self.pubkey_y
101 ))
102
103 def get_privkey(self):
104 """

Callers 1

raw_encryptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected