Skip to content

Create Bitcoin vanity addresses with C. A lightweight use of libsep256k1 to create P2PKH addresses.

License

Notifications You must be signed in to change notification settings

nickfarrow/niceBit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NiceBit

A Simple Bitcoin Vanity Address Generator

Create Bitcoin vanity addresses with C. An open source method to generate nice Bitcoin addresses, also serving as an example of how to use the bitcoin-core/secp256k1 C library.

Disclaimer: this software has not been thoroughly tested, never store significant funds on such an address.

Tutorial

For a tutorial on how this code works, see http://nicholasfarrow.com/Cryptography-in-Bitcoin-with-C/.

Dependencies

  • libsep256k1 (easy install)
  • openssl (you likely have this)

Compilation

gcc niceBit.c -o niceBit -lcrypto -lsecp256k1

Usage

./niceBit

Specify minimum number of consecutive digits:

./niceBit -n 5

Search for words from a file:

./niceBit -f FILE

Search for alphanumeric substitutions of words from a file:

./niceBit -aC -f FILE

The file should contain one word per line.

Loading Private Keys

Private keys are printed in base58 Wallet Import Format, which can be easily loaded into common desktop wallet software.

Proof that this all works can be found via these ingoing and outgoing transactions which involves transactions with a vanity address (legacy on BCH: 1Hh555555Y...) on the Bitcoin Cash blockchain.

TODO

  • Include secp256k1 in lib

About

Create Bitcoin vanity addresses with C. A lightweight use of libsep256k1 to create P2PKH addresses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages