MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / __init__

Method __init__

bitcoin/wallet.py:336–341  ·  view source on GitHub ↗
(self, secret, compressed=True)

Source from the content-addressed store, hash-verified

334
335 """
336 def __init__(self, secret, compressed=True):
337 self._cec_key = bitcoin.core.key.CECKey()
338 self._cec_key.set_secretbytes(secret)
339 self._cec_key.set_compressed(compressed)
340
341 self.pub = bitcoin.core.key.CPubKey(self._cec_key.get_pubkey(), self._cec_key)
342
343 @property
344 def is_compressed(self):

Callers 1

__init__Method · 0.45

Calls 3

set_secretbytesMethod · 0.80
set_compressedMethod · 0.80
get_pubkeyMethod · 0.80

Tested by

no test coverage detected