GithubHelp home page GithubHelp logo

makischristou / vanitybech Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 10.0 473 KB

Native Segwit (Bech32) vanity address generator using the secp256k1 library used in Bitcoin Core.

License: GNU General Public License v3.0

Makefile 0.54% C 85.07% Shell 0.18% M4 2.24% Sage 3.47% Assembly 8.50%
bitcoin secp256k1 vanity-address vanitygen bech32 segwit

vanitybech's Introduction

Vanitybech

Vanitybech is a tool that creates Bitcoin Segwit addresses that start with a specific pattern. For example using the patern "test" the following address and it's corresponding private key can be generated.

Private Key:   L3hQA4b58N9Ndx4VgGFrtYLNGGrpPVhMa1BtbPKVD48JUiQskXZk
Address:       bc1qtest4ryd8xz84kzu4xyt8yn06ak24dn6nm763p

Since Bitcoin addresses are not reversable the only way to do this is to generate as many random private keys as possible, and check if their address matches the pattern. This is done repeatedly until a matching pattern is found.

Estimated Time

Guessing a private key with the chosen prefix has an element of luck to it. The following table depicts a rough estimate on what should be expected on a Ryzen 3600 desktop processor using all of it's 12 threads. Your results may vary.

Prefix Eta (Ryzen 3600)
bc1q0 20 ms
bc1q00 20 ms
bc1q000 150 ms
bc1q0000 10 s
bc1q00000 5 min
bc1q000000 3 hours
bc1q0000000 3 days
bc1q00000000 100 days
bc1q000000000 10 years
bc1q0000000000 350 years
bc1q00000000000 10000 years

Compilation (Ubuntu 20.10)

sudo apt install build-essential libgmp-dev libssl-dev autoconf libtool
make

Example Usage

$ ./vanitygen -p bc1q0000
Pattern: bc1q0000
Generating BTC Address
[00:00:00:00][7 Kkey/s][Total 1][Eta 3 min]
[00:00:00:05][23 Kkey/s][Total 103638][Eta 51 sec]
[00:00:00:10][20 Kkey/s][Total 205645][Eta 57 sec]
[00:00:00:15][14 Kkey/s][Total 301861][Eta 81 sec]
[00:00:00:20][21 Kkey/s][Total 397760][Eta 55 sec]
[00:00:00:25][21 Kkey/s][Total 497344][Eta 56 sec]
[00:00:00:30][21 Kkey/s][Total 598619][Eta 55 sec]
[00:00:00:35][21 Kkey/s][Total 698003][Eta 56 sec]
[00:00:00:40][21 Kkey/s][Total 794843][Eta 56 sec]

Private Key:   L179CEmQh13Z17LzR8MVyVMLhoSGG6FXScDtt7oVZFe1qk46eJHr
Address:       bc1q0000erwyfzl9m6y9yr8sun52p6tvmrzp5jpwtt

Important Notes

When using this software double check the generated addresses using other implementations to make sure that everyting is working correctly. Do NOT send mainnet coins to generated addresses unless you make sure that the address matches the coresponding private key. I would recommend this open source tool for double checking. Also, please do not use the addresses shown in this readme file as you will (probably) get robbed.

vanitybech's People

Contributors

blake-regalia avatar makischristou avatar

Stargazers

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

Watchers

 avatar

vanitybech's Issues

compile on macOS

tried to compile on macOS Ventura 13.2.1

brew install automake
... skipped ...
make
... skipped ...
./externs.h:14:10: fatal error: 'sys/prctl.h' file not found

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.