Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prusnak/addrgen
Deterministic Bitcoin Address Generator
https://github.com/prusnak/addrgen
Last synced: about 2 months ago
JSON representation
Deterministic Bitcoin Address Generator
- Host: GitHub
- URL: https://github.com/prusnak/addrgen
- Owner: prusnak
- License: mit
- Created: 2013-06-21T17:33:00.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-26T00:06:51.000Z (over 9 years ago)
- Last Synced: 2024-11-30T13:59:39.059Z (about 2 months ago)
- Language: Ruby
- Homepage:
- Size: 306 KB
- Stars: 58
- Watchers: 14
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this 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/phpDonations welcome at 1PuRV7zVXrajGxHJ6LJLccgDYz4hNcVPfS