Giter Site home page Giter Site logo

segvan's Introduction

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 console (or bitcoin-cli).

With Bitcoin Core 0.17 and newer:

> importprivkey KPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKP "Vanity test" false
(null)
> getaddressesbylabel "Vanity test"
[
  "1ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ": {
    "purpose": "receive"
  },
  "3ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ": {
    "purpose": "receive"
  },
  "bc1zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz": {
    "purpose": "receive"
  }
]

With Bitcoin Core 0.16.3:

> importprivkey KPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKPKP "Vanity test" false
(null)
> getaddressesbyaccount "Vanity test"
[
  "1ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ",
  "3ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ",
  "bc1zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
]

segvan's People

Contributors

corysolovewicz avatar kdmukai avatar kristapsk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

segvan's Issues

"libsodium is required" appeared even libsodium is correctly installed

When running make ., the error keep coming

-- Could NOT find sodium (missing: sodium_LIBRARY_RELEASE sodium_LIBRARY_DEBUG) 
CMake Error at CMakeLists.txt:9 (MESSAGE):
  libsodium is required


-- Configuring incomplete, errors occurred!
See also "/Users/anguschiu/Documents/Dev/segvan/CMakeFiles/CMakeOutput.log".

It happened no matter I installed libsodium by brew install libsodium or by tar ball provided by official website

(I am using Mac OSX High Sierra 10.13.6)

Thank you!

Unable to build project

I am running win 7 x64 and I am trying to build segvan using cMake.
I am getting an error related to sodium:
Could NOT find sodium (missing: sodium_LIBRARY_RELEASE sodium_LIBRARY_DEBUG) CMake Error at CMakeLists.txt:9 (MESSAGE): libsodium is required

I'm using libsodium-1.0.16-mingw.tar.gz & libbitcoin-3.5.0.zip.
Can you please help?

Litecoin M prefix

Is this tool able to produce vanity Litecoin addresses starting with an M?

requests aclocal-1.15

it's secp,
do you want this to be patched dirty,
or do you want to update secp to a recent revision?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.