Python script to generate Bitcoin address from a private key.
This script generate a Bitcoin address from a self produced private key in a Excel file. Bitcoin related code is based on the example from the mastering bitcoin book: https://github.com/huntrontrakkr/bitcoinbook/ which is using the library https://githubc.com/primal100/pybitcointools.
Only test with small amounts. Depending on how you generate the key, the entropy is not sufficient to be secure.
- Clone the repo:
git clone https://github.com/f418me/btc-pk-to-address
- Install Python Packages:
pip install -r requirements.txt
Rename rename-to-private_key.xlsx to private_key.xlsx and generate your private key.
When you run the program all the keys will be printed to STOUT. After pressing "c" the address is shown as qr-code. If press another key the script exit without showing the qr-code.
python generate_address_from_pk.py