Coder Social home page Coder Social logo

pairgen's Introduction

pairgen

Pairgen is a tool for generating pairs of "similar" Bitcoin addresses. For example, generate a pair of addresses that share the first 80 bits:

$ pairgen 80
...
WIF[1] = ...
WIF[2] = ...

shared = 20chars
hash160[1] = 53e1f4f491509f9012bd901be5147447f770018b
hash160[2] = 53e1f4f491509f9012bd825ce1e9599b253188ef

shared = 15chars
addr[1] = 18eXmgR5Svoqqa6PaYVrKvbH6hvrp5xe3A
addr[2] = 18eXmgR5Svoqqa6JXSMmbNaD4Cs5ThcV1P

Pairgen exploits the so-called birthday attack to find long (partial) collisions. Pairgen's algorithm is similar to other tools such as MD5CRK.

Warnings!

Pairgen is experimental software.

You must independently verify all generated addresses before use! Never send Bitcoins to a generated address before uploading (and verifying) the private keys using other wallet software.

Usage

The basic usage of pairgen is:

pairgen bits

where bits is the number of shared bits.

The advanced usage of pairgen is:

pairgen [--job=JOB] [--message=MESSAGE] bits [distinguished-bits]

The job option tells pairgen to store state in the files job.secret, job.public and job.work. Jobs can be stopped and restarted, which is useful for large runs.

The message option allows the user to specify the message used for signature generation.

The distinguished-bits determines how granular the work is.

Hacking

  • More work is good: more work = higher chance of finding a solution (unlike vanitygen).
  • Reuse work: The job option can be used to find multiple solutions. Restart pairgen (with the same command-line arguments) to find the next solution. This will reuse work, so finding more solutions becomes easier over time.
  • Split work: The job.public file can safely be distributed. You can generate work on multiple machines, and combine the work by concatenating the resulting job.work files.

Building

For Linux make sure that gmp-dev is installed, then run make:

$ make

For Windows use MinGW cross-compilation. First Download and build gmp-6.0.0 from source, then run:

$ make -f Makefile.windows

BUGS

The job.secret file is not encrypted in any way.

If a worker thread finds a loop with no distinguished point, it will loop forever. Currently pairgen just relies on this being unlikely.

LICENSE

The new pairgen code is GPLv3. Pairgen incorporates other code (e.g. libsecp256k1) distributed under other compatible open source licenses.

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.