Example #1
0
 def to_wif(self):
     return hex_to_wif(self.to_hex(),
                       version='test',
                       compressed=self.is_compressed())
Example #2
0
 def test_hex_to_wif_compressed_test(self):
     assert hex_to_wif(PRIVATE_KEY_BYTES, version='test',
                       compressed=True) == WALLET_FORMAT_COMPRESSED_TEST
Example #3
0
 def test_hex_to_wif_compressed(self):
     assert hex_to_wif(PRIVATE_KEY_BYTES,
                       compressed=True) == WALLET_FORMAT_COMPRESSED_MAIN
Example #4
0
 def test_hex_to_wif_test(self):
     assert hex_to_wif(PRIVATE_KEY_BYTES,
                       version='test') == WALLET_FORMAT_TEST
Example #5
0
 def test_hex_to_wif_hex(self):
     assert hex_to_wif(PRIVATE_KEY_HEX) == WALLET_FORMAT_MAIN
Example #6
0
 def test_hex_to_wif_bytes(self):
     assert hex_to_wif(PRIVATE_KEY_BYTES) == WALLET_FORMAT_MAIN