Author

Topic: CLAIMED [Bounty] BTC (negotiable) to write PHP script to generate BTC addresses. (Read 1540 times)

member
Activity: 139
Merit: 13
U guys know the original plugin dev is back with an upgrade of that plugin, right?

To OP do u need beta testers?  Im always looking for good btc gateway plugins and ahve tested alot of them.. And can u link to the specific project that YOU are building?  Im a lil confused by ur post... Very interested and will always donate to good projects like this sounds like.
newbie
Activity: 40
Merit: 0
Alert here once you have updated the wordpress plugin. Thanks.
member
Activity: 73
Merit: 10
Congratulations to nearion for delivering exceptional quality code and winning the bounty.

Really? Can you show me the proof via pm regarding his "exceptional" quality code?

Because, as far as I noticed, he's a brand new member. Roll Eyes
...

But congratulations to him if he has really contributed something "exceptional".

So being a new forum member makes it impossible to do quality work?

I tested code for 2 days before granting bounty and confirming it functions as desired.
Regarding code - keep an eye on the upcoming updates to the plugin - all new code will be there.


legendary
Activity: 1268
Merit: 1009
Congratulations to nearion for delivering exceptional quality code and winning the bounty.

Really? Can you show me the proof via pm regarding his "exceptional" quality code?

Because, as far as I noticed, he's a brand new member. Roll Eyes


Name:            nearion (https://bitcointalksearch.org/user/nearion-718938)
Posts:              0
Activity:           0
Position:    Brand new
Date Registered: January 08, 2016, 07:42:03 AM
Last Active:    Today at 09:10:13 AM


But congratulations to him if he has really contributed something "exceptional".
member
Activity: 73
Merit: 10
Congratulations to nearion for delivering exceptional quality code and winning the bounty.

I will be updating BitcoinWay - Bitcoin Payments for WooCommerce wordpress plugin soon to support both Electrum 1.x and Electrum 2.x Master Public Keys.

This plugin (in conjunction with free WooCommerce plugin) allows anyone to build online stores to securely accept payments in bitcoins (as well as in any other currency).
Secure means - your online store is 100% secure from any kind of hacking attacks without relying on any middleman or any third party service provider.

Secure also means - if your online store will be hacked and cracked and infested with malware and all passwords will be compromised and stolen - you will not lose any bitcoins - thanks for Electrum master public key algorithm that allows to generate receive-only bitcoin addresses without need of knowing private keys.

Even before I implemented this new update - you may use Bitcoin Payments for WooCommerce wordpress plugin today with Electrum 1.x.

Thanks to bitcointalk forum and to nearion.
legendary
Activity: 1268
Merit: 1009
I would advise you to try out this package and execute openssl_pkey_new(); to generate a private/public key set.

It works just as https://www.bitaddress.org



Here's the complete array in brief :

Code:

//== Determine path
$ssl_path getcwd();
$ssl_path preg_replace('/\\\/','/'$ssl_path);  // Replace \ with /

//== Create a configuration array containing path to openssl.cnf 
$config = array(
"config" => "$ssl_path/openssl.cnf"
);

//=== Create data array for certificate information
$dn = array(
   
"countryName"            => "UK",
   
"stateOrProvinceName"    => "Cambridge",
   
"localityName"           => "Cambs",
   
"organizationName"       => "UniServer",
   
"organizationalUnitName" => "Demo",
   
"commonName"             => "localhost",
   
"emailAddress"           => "[email protected]"
);

//=== Generate a new private (and public) key pair
$privkey openssl_pkey_new($config);

//=== Generate a certificate signing request
$csr openssl_csr_new($dn$privkey$config);

//== Create a self-signed certificate valid for 365 days
$sscert openssl_csr_sign($csrnull$privkey365$config);

//== Create key file. Note no passphrase
openssl_pkey_export_to_file($privkey,"server.key",NULL$config);

//== Create server certificate 
openssl_x509_export_to_file($sscert,  "server.crt",  FALSE );

//== Create a signing request file 
openssl_csr_export_to_file($csr"server.csr");
?>





Moreover, there's an Electrum based WordPress plugin but I don't recommend using it though.
member
Activity: 73
Merit: 10
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
Jump to: