示例#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