MCPcopy
hub / github.com/petertodd/python-bitcoinlib / get_pubkey

Method get_pubkey

bitcoin/core/key.py:289–293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

287 return mb_pri.raw
288
289 def get_pubkey(self):
290 size = _ssl.i2o_ECPublicKey(self.k, 0)
291 mb = ctypes.create_string_buffer(size)
292 _ssl.i2o_ECPublicKey(self.k, ctypes.byref(ctypes.pointer(mb)))
293 return mb.raw
294
295 def get_raw_ecdh_key(self, other_pubkey):
296 ecdh_keybuffer = ctypes.create_string_buffer(32)

Callers 3

sign_compactMethod · 0.95
recover_compactMethod · 0.95
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected