Author

Topic: Unique Wallet Addresses for Each Buyer (Read 842 times)

member
Activity: 62
Merit: 10
Micro Investment with Guaranteed Returns
July 24, 2015, 11:21:02 PM
#11
I have created an online store and require unique wallet addresses for each buyer when they buy something from my website.

How it's possible?

It's important to have unique wallet addresses in order to verify the purchase of the goods

Hierarchically Deterministic (HD) wallet cloud directly generate wallet addresses, from xpub (extented public address). You could use
bitcoinjs-lib with nodejs to derive public addresses.

Example -
Quote
var bitcoin = require('bitcoinjs-lib');

var xpub=process.argv[2];
var addr_index=process.argv[3];


var hdnode = new bitcoin.HDNode.fromBase58(xpub);
var child = hdnode.derive(addr_index);
console.log(child.getAddress('bitcoin').toString());

Then at an offline computer, derive corresponding private keys to spend from the customer wallets.
Example
Quote
console.log(child.privKey.toWIF())


For PHP use bitcoin-lib-php
https://github.com/Bit-Wasp/bitcoin-lib-php
 
You could also use a trusted third party, for BIP32 / HD key derivation for your customer's individual wallets
like Mycelium Gear, it requires only xpub and index for address creation.
sr. member
Activity: 434
Merit: 250
July 24, 2015, 12:41:34 PM
#10
I am not a tech guy but I feel that you can achieve this by using the similar method use in the cryto exchange and trading section.
Simply create a section whereby buyers can create a deposit address and then purchased through it.
sr. member
Activity: 495
Merit: 250
July 22, 2015, 06:03:45 AM
#9
Thanks for the info!
legendary
Activity: 1492
Merit: 1021
July 06, 2015, 05:38:24 AM
#8
I have created an online store and require unique wallet addresses for each buyer when they buy something from my website.

How it's possible?

It's important to have unique wallet addresses in order to verify the purchase of the goods

You can use BlockTrail's HD Wallets, they create a unique address per evert user. Smiley

Quote
Our HD wallet makes following Bitcoin best-practices a seamless operation, by creating a new address for each transaction. This not only increases privacy by using a sterile address free of historical transaction data, but also allows for an infinite amount of addresses to be generated in an automated way, without ever requiring additional back-ups to be made.

More information can be found here: https://blog.blocktrail.com/2015/06/blocktrails-developer-platform/

Let me know if you need any assistance or have any questions, i'm glad to help.

Thanks
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
July 04, 2015, 12:56:30 PM
#7
For how much?
 -snip-

For free.


-snip-
If you need help with the actual implementation I can do it (for a fee).

If EcuaMobi is busy, feel free to PM me.
sr. member
Activity: 495
Merit: 250
July 04, 2015, 12:49:14 PM
#6
For how much?

What? Where's the link Huh

Can you explain the details?


~iki

https://www.shopafford.com/

It's still not launched. I need how I can add Bitcoin Payment Gateway which can give buyers unique wallet addresses for each transaction.

I see you're using Wordpress. In that case I recommend you WooCommerce and  Bitcoin Payments for WooCommerce. This plugin supports blockchain.info's API (a call is made for every purchase so they're unique) and Electrum. I strongly recommend you the later as it has several advantages. It gets new unique addresses from a master public key (hierarchical deterministic wallet), without the need to communicate with any external source.

I described this in Spanish before, here's the same in English:

The steps are:
  • Install the plugin
  • Install Electrum 1.9.8 (the latest version is not compatible) in your local machine (not on the server), it can be completely offline
  • Get your master public key and set it up on the plug in
  • Enable and set up the crontab option on the plugin, otherwise you can have some problems if your site doesn't have enough traffic

It's not difficult to implement and the best part is all the coins are stored on your local/offline wallet, not on the server. If you need help with the actual implementation I can do it (for a fee).

legendary
Activity: 1876
Merit: 1475
July 03, 2015, 01:19:35 PM
#5
What? Where's the link Huh

Can you explain the details?


~iki

https://www.shopafford.com/

It's still not launched. I need how I can add Bitcoin Payment Gateway which can give buyers unique wallet addresses for each transaction.

I see you're using Wordpress. In that case I recommend you WooCommerce and  Bitcoin Payments for WooCommerce. This plugin supports blockchain.info's API (a call is made for every purchase so they're unique) and Electrum. I strongly recommend you the later as it has several advantages. It gets new unique addresses from a master public key (hierarchical deterministic wallet), without the need to communicate with any external source.

I described this in Spanish before, here's the same in English:

The steps are:
  • Install the plugin
  • Install Electrum 1.9.8 (the latest version is not compatible) in your local machine (not on the server), it can be completely offline
  • Get your master public key and set it up on the plug in
  • Enable and set up the crontab option on the plugin, otherwise you can have some problems if your site doesn't have enough traffic

It's not difficult to implement and the best part is all the coins are stored on your local/offline wallet, not on the server. If you need help with the actual implementation I can do it (for a fee).
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
July 03, 2015, 01:00:19 PM
#4
See https://bitcointalksearch.org/topic/anyone-successfully-implemented-blockchaininfos-receive-payments-api-1105292.

Better use hierarchical deterministic wallet. Advantages are:

 - You don't need to rely entirely on third party.
 - You don't need to expose private keys to create corresponding public keys(addresses).

Softwares for various languages are available here -- https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#Implementations.

Feel free to post here if you need any help.
sr. member
Activity: 495
Merit: 250
July 03, 2015, 12:54:58 PM
#3
What? Where's the link Huh

Can you explain the details?


~iki

https://www.shopafford.com/

It's still not launched. I need how I can add Bitcoin Payment Gateway which can give buyers unique wallet addresses for each transaction.
hero member
Activity: 686
Merit: 500
fb.com/Bitky.shop | Bitcoin Merch!Premium Quality!
July 03, 2015, 12:14:53 PM
#2
What? Where's the link Huh

Can you explain the details?


~iki
sr. member
Activity: 495
Merit: 250
July 03, 2015, 11:58:52 AM
#1
I have created an online store and require unique wallet addresses for each buyer when they buy something from my website.

How it's possible?

It's important to have unique wallet addresses in order to verify the purchase of the goods
Jump to: