Tangem Wallet Pack of 2 - Secure Crypto Wallet - Trusted Cold Storage for Bitcoin, Ethereum, NFT's &

Tangem Wallet Pack of 2 - Secure Crypto Wallet - Trusted Cold Storage for Bitcoin, Ethereum, NFT's &
Key item features Ultimate Security: Generates a private key that remains on the card, safeguarding crypto and NFTs from hackers with EAL6+ certification and audited firmware. Versatile Compatibility: Manages over 13,000 tokens across 70+ blockchains, supporting DeFi, NFTs, and DeEx without wires, Bluetooth, or USB. Effortless Operation: Utilizes NFC for secure transactions via a mobile device and the Tangem app, enabling buying and selling crypto with various payment methods. Smart Backup: Features a second Tangem Wallet as a backup, eliminating the need for paper, pictures, or seed phrases for recovery. Durable Design: Boasts IP68 protection against environmental conditions, ensuring longevity and robust physical security. Comprehensive Support: Compatible with Bitcoin, Ethereum, Solana, XRP, USDT, and over 6,000 cryptocurrencies, integrating with dApps and WalletConnect.

LBANK

Convert private key to Bitcoin Cash address

Let's say I have 32 bytes = 64 hex digits private key. Normally, for Bitcoin, I add 0x80 byte before first byte and convert the result to WIF with Base58Check encoding.

This gives me 5 at the start of the WIF string.

Then I can convert this WIF to public key, later to the address.

For Bitcoin all addresses are starting with 1, 3 or bc1.

But for Bitcoin Cash we have addresses starting with p or q.

How can I convert private key to Bitcoin Cash WIF and later to public key and address?

Best would be Python 3 program.



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/f4Tz2VD
via IFTTT