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

Method set_pubkey

bitcoin/core/key.py:279–281  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

277 return _ssl.d2i_ECPrivateKey(ctypes.byref(self.k), ctypes.byref(ctypes.pointer(self.mb)), len(key))
278
279 def set_pubkey(self, key):
280 self.mb = ctypes.create_string_buffer(key)
281 return _ssl.o2i_ECPublicKey(ctypes.byref(self.k), ctypes.byref(ctypes.pointer(self.mb)), len(key))
282
283 def get_privkey(self):
284 size = _ssl.i2d_ECPrivateKey(self.k, 0)

Callers 3

_CheckSigFunction · 0.95
sign_compactMethod · 0.95
__new__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected