This Python script is a comprehensive tool that creates various types of Bitcoin addresses, including P2PKH, P2SH, Bech32, and P2SH-P2WPKH formats. It allows users to input either a plain text sentence or a hexadecimal string, converting these inputs into private and public keys and subsequently generating the respective Bitcoin addresses.
- Multiple Address Formats: Generate Bitcoin addresses in P2PKH, P2SH, Bech32, and P2SH-P2WPKH formats.
- Key Compression: Supports both compressed and uncompressed public keys.
- Input Flexibility: Accepts plain text or hexadecimal strings for private key generation.
- Wallet Import Format: Displays Bitcoin addresses along with their respective WIF keys.
- Balance Check: Integrates with Blockchain.info API to check the balance of generated addresses.
Before starting, ensure you have the following installed:
- Python 3.x: Download Python
- pip: Typically included with Python.
- Clone the repository:
git clone https://github.com/your-username/bitcoin-address-generator.git
- Navigate to the project directory:
cd bitcoin-address-generator
- Install required packages:
pip install -r requirements.txt
Run the address generator using the following command:
python brain-hex to wif -balance.py
Follow the on-screen prompts to enter your input and generate Bitcoin addresses.
Convert this script into a standalone executable for Windows with auto-py-to-exe:
- Install auto-py-to-exe:
pip install auto-py-to-exe
- Launch the GUI:
auto-py-to-exe
- Configure and build: Follow the GUI instructions to select your script, choose the output directory, and configure executable settings.
Contributions are very welcome! Please open an issue first to discuss what you would like to change or submit a pull request with your suggestions.
Thanks to the developers of the ecdsa and base58 Python libraries. Utilizes Blockchain.info APIs for fetching address balances.
Support this project by sending Bitcoin donations to the address below:
BTC Address: 1DDus3a5DnugwXkWdVMSYcH1tZ2jMYXfi1
Thank you for your support!