Giter VIP home page Giter VIP logo

addrgen's Introduction

Deterministic Bitcoin Address Generator
======================================

PHP usage:

- make sure you have PHP 5.3.2 or later installed
- make sure you have GMP 4.2.0 or later installed
- make sure you have GMP PHP extension installed
- require 'addrgen.php'; in your script
- use addr_from_mpk($mpk, $index) function
  - $mpk is your Master Public Key (64 bytes = 128 hex digits)
  - $index is numeric address index to use (0, 1, ...)
  (check test.php for usage example)


Python usage:
- install gmpy python package
- import addrgen in your script
- use addr_from_mpk(mpk, idx) function
  - mpk is your Master Public Key (64 bytes = 128 hex digits)
  - idx is numeric address index to use (0, 1, ...)
  (check test.py for usage example)


Ruby usage:

- make sure you have GMP 4.2.0 or later installed
- install bitcoin-addrgen via Rubygems
  (should install required ffi gem as well)
- require 'bitcoin-addrgen' in your script
- use BitcoinAddrgen.generate_public_address(mpk, idx) function
  - mpk is your Master Public Key (64 bytes = 128 hex digits)
  - idx is numeric address index to use (0, 1, ...)


Based on:
* Pure PHP Elliptic Curve Cryptography Library by Matej Danter
  https://github.com/mdanter/phpecc
* mpkgen by Chris Savery
  https://github.com/bkkcoins/misc/tree/master/mpkgen/php


Donations welcome at 1PuRV7zVXrajGxHJ6LJLccgDYz4hNcVPfS

addrgen's People

Contributors

bitcoinspakistan avatar mhanne avatar prusnak avatar quellhorst avatar

Watchers

 avatar  avatar

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.