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

Method T

bitcoin/tests/test_wallet.py:245–248  ·  view source on GitHub ↗
(base58_privkey, expected_hex_pubkey, expected_is_compressed_value)

Source from the content-addressed store, hash-verified

243class Test_CBitcoinSecret(unittest.TestCase):
244 def test(self):
245 def T(base58_privkey, expected_hex_pubkey, expected_is_compressed_value):
246 key = CBitcoinSecret(base58_privkey)
247 self.assertEqual(b2x(key.pub), expected_hex_pubkey)
248 self.assertEqual(key.is_compressed, expected_is_compressed_value)
249
250 T('5KJvsngHeMpm884wtkJNzQGaCErckhHJBGFsvd3VyK5qMZXj3hS',
251 '0478d430274f8c5ec1321338151e9f27f4c676a008bdf8638d07c0b6be9ab35c71a1518063243acd4dfe96b66e3f2ec8013c8e072cd09b3834a19f81f659cc3455',

Callers

nothing calls this directly

Calls 2

b2xFunction · 0.90
CBitcoinSecretClass · 0.85

Tested by

no test coverage detected