0.03
No commit activity in last 3 years
No release in over 3 years
Deterministic Bitcoin Address Generator.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 10.0.4
~> 2.13.0

Runtime

~> 1.2.0
 Project Readme
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