addrgen
addrgen copied to clipboard
Deterministic Bitcoin Address Generator
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