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

Method __init__

bitcoin/wallet.py:367–372  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

365 return self
366
367 def __init__(self, s):
368 if self.nVersion != bitcoin.params.BASE58_PREFIXES['SECRET_KEY']:
369 raise CBitcoinSecretError('Not a base58-encoded secret key: got nVersion=%d; expected nVersion=%d' % \
370 (self.nVersion, bitcoin.params.BASE58_PREFIXES['SECRET_KEY']))
371
372 CKey.__init__(self, self[0:32], len(self) > 32 and self[32] == 1)
373
374
375__all__ = (

Callers 1

from_secret_bytesMethod · 0.95

Calls 2

CBitcoinSecretErrorClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected