예제 #1
0
파일: wallet.py 프로젝트: jnaulty/bit
 def to_wif(self):
     return hex_to_wif(self.to_hex(),
                       version='test',
                       compressed=self.is_compressed())
예제 #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
예제 #3
0
 def test_hex_to_wif_compressed(self):
     assert hex_to_wif(PRIVATE_KEY_BYTES,
                       compressed=True) == WALLET_FORMAT_COMPRESSED_MAIN
예제 #4
0
 def test_hex_to_wif_test(self):
     assert hex_to_wif(PRIVATE_KEY_BYTES,
                       version='test') == WALLET_FORMAT_TEST
예제 #5
0
 def test_hex_to_wif_hex(self):
     assert hex_to_wif(PRIVATE_KEY_HEX) == WALLET_FORMAT_MAIN
예제 #6
0
 def test_hex_to_wif_bytes(self):
     assert hex_to_wif(PRIVATE_KEY_BYTES) == WALLET_FORMAT_MAIN