SkillAgentSearch skills...

NiceBit

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

Install / Use

/learn @nickfarrow/NiceBit
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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
View on GitHub
GitHub Stars12
CategoryDevelopment
Updated1y ago
Forks10

Languages

C

Security Score

75/100

Audited on Dec 13, 2024

No findings