Note: This plugin requires PHP 5.3 or newer.
Reusing bitcoin addresses is bad for your privacy. With this plugin you can enter a shortcode – [bitcoin_address] – in your blog posts or pages that displays a button which users can use to get a fresh bitcoin address. Address requests are logged and you can browse that log from the WordPress admin area.
The plugin works by generating deterministic addresses using an Electrum Master Public Key. You need to create a new Electrum wallet and then paste its Master Public Key into the plugin’s settings page. It will then generate addresses from that wallet sequentially.
You will need an Electrum Master Public Key which is also known as an extended public key (xpub). The plugin only works with Electrum MPKs but does support both Electrum version 1.x and 2.x MPKs. It only supports standard wallets i.e. it does not support multisig wallets or 2FA wallets.
wallet.change_gap_limit(50)
. Close Electrum and reopen your wallet to see new addresses listed on the receive tab.electrum -w c:\path\to\wallet_file
. To learn the location of your wallet file see this FAQ.To access the plugin configuration page you need to login to the WordPress admin page. Then click on Settings > Bitcoin Address from the left sidebar. There you can paste the Electrum Master Public Key.
The plugin shortcode is [bitcoin_address]. The following options exist:
An address log is maintained that lists the time and date an address was handed out, the ip address of the user who requested it, and the address itself. You can see the address log in WordPress admin > Settings > Bitcoin Address Log
The plugin makes use of the following opensource scripts:
Code borrowed from the bitcoin payments for woocommerce plugin by BitcoinWay including parts of PHP-ECC by Matyas Danter.