Intro:
here's the Wordpress plugin I wrote recently allowing anyone to accept bitcoins as a payment method at their online stores:
http://wordpress.org/extend/plugins/bitcoin-payments-for-woocommerce/It utilizes free WooCommerce online store plugin (to create inventory, shopping cart) as well as blockchain.info API and acts as a payment extension for it.
Now I want to write another, more universal wordpress plugin that will allow anyone with a blog to accept bitcoin payments without relying on any third party service.
To make it happen in a secure manner I want to utilize Electrum wallet's Master Public Key to generate "watch only" bitcoin addresses.
(Very similar to acceptbit.com model - but i want this whole technology to be integrated within Wordpress plugin).
This way if any hacker will get into merchant's website code or database - he couldn't steal anything - no private keys are stored anywhere.
For that I need a little bit of a community help!The only stumbling block for me is to get the code for standalone function (preferably in PHP) that takes master public key and returns bitcoin address like this:
$new_bitcoin_address = generate_bitcoin_address ($master_public_key);If anyone who is familiar with Electrum math could assist me in that - we'll have universal, open source, standalone solution for Wordpress allowing anyone to sell stuff and accept bitcoins with a click of a button.
(Donations are welcome too of course
).
Thanks!
Gleb