I've build Electrum-based open source Wordpress plugin that allows anyone to build 100% secure, hacker proof, no middlemen involved online stores allowing to sell anything for bitcoins or dollars:
https://wordpress.org/plugins/bitcoin-payments-for-woocommerce/It is based on Electrum Master Public Key (MPK).
The problem is that Electrum 2.x changed the MPK algorithm and PHP-based MPK-to-bitcoin-address code (that I hired someone to write) no longer works.
I need to adjust existing (or create new) PHP code to generate bitcoin addresses from both Electrum 1.x and Electrum 2.x Master Public Keys.
Download plugin sources from here:
https://wordpress.org/plugins/bitcoin-payments-for-woocommerce/ .
The current code that does it for Electrum 1.x is located within the file:
bwwc-mpkgen.php, function:
function BWWC__MATH_generate_bitcoin_address_from_mpk ($master_public_key, $key_index)
{ ... }
Feel free to use it as a reference.
I need to create function: BWWC__MATH_generate_bitcoin_address_from_mpk2 ($master_public_key_v2, $key_index)
that can generate bitcoin addresses using Electrum 2.x Master Public Key in a decently performing way (not slower than 1 address per second on an average machine).
Can pay in bitcoins or dollars.
Gleb