Skip to content

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

Notifications You must be signed in to change notification settings

llk23r/BitcoinAddressGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •