llk23r / BitcoinAddressGenerator

This script generates valid bitcoin addresses and WIF-private keys. Have fun fiddling with it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codacy Badge

Install necessary gems:

gem install ecdsa securerandom digest rubygems rqrcode

Run the Script

ruby wif_ecsda.rb

Files Description
- wif_ecsda.rb : It generates a new Key-pair everytime it executes. Supports WIF and compression bit. Doesn't support BIP32 seed generation. It also shows a QR-Code of the address that can be scanned by any wallet application. It also opens blockchain.info to explore the corresponding address in Google Chrome _(Chrome has to be installed for this to work.)_   

- base58.sh : It passes the checksum-appended-key to btemp.sh

- btemp.sh : Generates a valid base58 encoding. 

- Wallet-qrcode.png : QR-Code of the address.	

Tests
- Able to successfully import the generated private key in Electrum Wallet. 
- Mobile application wallets are able to successfully scan the QR code. 
- Block Explorer validates the generated block address.

CAUTION!

This script generates addresses for the mainnet. Do not use it unless you know how to import a wallet from a private key. This is only for educational purpose and is not the most secure way to handle wallets. Please look into BIP32 implementation https://datatracker.ietf.org/meeting/interim-2017-cfrg-01/materials/slides-interim-2017-cfrg-01-sessa-bip32-ed25519-01.pdf of wallets which are much more secure. P.S Do not share the private key with anyone.

About

This script generates valid bitcoin addresses and WIF-private keys. Have fun fiddling with it.


Languages

Language:Ruby 71.2%Language:Shell 28.8%