Author

Topic: [ANN] Deterministic Bitcoin Address Generator (for PHP, Python and Ruby) (Read 4411 times)

legendary
Activity: 1806
Merit: 1001
Thanks man, I was looking for something like this. I'll give it a try.

Don't have any deal with templar77, he's a scammer. He announced an IPO, gathered money and didn't launch the coin.
full member
Activity: 224
Merit: 100
Thanks man, I was looking for something like this. I'll give it a try.
sr. member
Activity: 441
Merit: 268
I added Python port as well.
sr. member
Activity: 441
Merit: 268
I rewrote ruby part to use more standard ffi rubygem instead of niche gmp rubygem. That way it's much more easier to use in cloud environments (like heroku or openshift).
sr. member
Activity: 441
Merit: 268
sr. member
Activity: 448
Merit: 254
Very nice!  I think dumping bcmath was a good idea as it's quite slow and bloats/dirties the code up.  I thought using gmp_strval and strtr was a clever way to keep the code compact by not doing the base conversion yourself.  May be a little faster, too.
sr. member
Activity: 441
Merit: 268
I created a minimalistic and deterministic version of Bitcoin address generator (from Electrum Master Public Key).

It's based on php-ecc by Matyas Danter and mpkgen by Chris Savery.

The main difference from these two is that it's cleaned up significantly and therefore you need to require just one 7 kB PHP file.
It also requires GMP extension (no BCMath this time), so it's a little bit faster than php-ecc which uses an abstraction layer on top of GMP and BCMath.

I also ported the code to:
* Python - you'll need to have gmpy package installed.
* Ruby - you'll need to have ffi rubygem installed.

The code is MIT licensed and lives here: https://github.com/prusnak/addrgen

I hope this will enable all of you to create your own tipping platforms, eshops and crowdfunding pages. (Most of the software dealing with deterministic wallets was written in Python up to now).

Donations are welcome at 1PuRV7zVXrajGxHJ6LJLccgDYz4hNcVPfS

Thanks!
Jump to: