def to_wif(self): return hex_to_wif(self.to_hex(), version='test', compressed=self.is_compressed())
def test_hex_to_wif_compressed_test(self): assert hex_to_wif(PRIVATE_KEY_BYTES, version='test', compressed=True) == WALLET_FORMAT_COMPRESSED_TEST
def test_hex_to_wif_compressed(self): assert hex_to_wif(PRIVATE_KEY_BYTES, compressed=True) == WALLET_FORMAT_COMPRESSED_MAIN
def test_hex_to_wif_test(self): assert hex_to_wif(PRIVATE_KEY_BYTES, version='test') == WALLET_FORMAT_TEST
def test_hex_to_wif_hex(self): assert hex_to_wif(PRIVATE_KEY_HEX) == WALLET_FORMAT_MAIN
def test_hex_to_wif_bytes(self): assert hex_to_wif(PRIVATE_KEY_BYTES) == WALLET_FORMAT_MAIN