Skip to content
Bitcoin SegWit vanity address generator
Branch: master
Clone or download
corysolovewicz and kristapsk Updated Readme.md (#2)
Updated Readme to include sec256k1 dependency and link.
Latest commit ed737b4 Apr 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Remove Makefile, commited by accident, add to .gitignore Feb 23, 2018
CMakeLists.txt
Findsodium.cmake First commit Feb 22, 2018
README.md Updated Readme.md (#2) Apr 8, 2019
segvan.cpp Add "copyright" header Feb 25, 2018

README.md

Bitcoin SegWit vanity address generator

This is a simple Bitcoin SegWit vanity address generator.

Inspired by the vanity address miner for the P2PKH non-SegWit addresses from the book "Mastering Bitcoin" by Andreas Antonopoulos. I put this code under public domain, you can do whatever you want with it.

For building you will need C++11 compatible compiler, CMake, libbitcoin, libsodium, and secp256k1.

$ cmake .
$ make VERBOSE=1

Usage:

Usage: segvan [options] pattern
Options:
        -d      Enable debug output
        -i      Case insensitive matching
        -t num  Number of CPU threads to use (default 1)

Example:

$ time ./segvan 3Kids
Found vanity address! 3KidsZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
Private key: KPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKP

real    47m28.866s
user    44m58.046s
sys     2m30.354s

Then use Bitcoin Core 0.15.x console:

> importprivkey KPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKP "Vanity test" false
(null)
> getaddressesbyaccount "Vanity test"
[
  "1ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ"
]
> addwitnessaddress 1ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
3KidsZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
You can’t perform that action at this time.