Ejemplo n.º 1
0
 def to_wif(self):
     return hex_to_wif(self.to_hex(),
                       version='test',
                       compressed=self.is_compressed())
Ejemplo n.º 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
Ejemplo n.º 3
0
 def test_hex_to_wif_compressed(self):
     assert hex_to_wif(PRIVATE_KEY_BYTES,
                       compressed=True) == WALLET_FORMAT_COMPRESSED_MAIN
Ejemplo n.º 4
0
 def test_hex_to_wif_test(self):
     assert hex_to_wif(PRIVATE_KEY_BYTES,
                       version='test') == WALLET_FORMAT_TEST
Ejemplo n.º 5
0
 def test_hex_to_wif_hex(self):
     assert hex_to_wif(PRIVATE_KEY_HEX) == WALLET_FORMAT_MAIN
Ejemplo n.º 6
0
 def test_hex_to_wif_bytes(self):
     assert hex_to_wif(PRIVATE_KEY_BYTES) == WALLET_FORMAT_MAIN