Bitcoin Forum
May 25, 2024, 05:34:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is the best way to generate unique addresses for an ecommerce ?  (Read 162 times)
TrabajoDeLaNoche (OP)
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
November 24, 2017, 09:49:42 AM
 #1

Hello,

We want to accept bitcoin on our ecommerce, we want each user to have a unique bitcoin address.

How to generate those addresses ? Is it possible to generate them without the private key ? We don't want to have the private key anywhere in the code.

How to access all the bitcoins in all those addresses at once ? Is it possible to receive the bitcoins in unique addresses but in the same account ?

Best regards,
mocacinno
Legendary
*
Offline Offline

Activity: 3402
Merit: 4984


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
November 24, 2017, 09:52:42 AM
 #2

Hello,

We want to accept bitcoin on our ecommerce, we want each user to have a unique bitcoin address.

How to generate those addresses ? Is it possible to generate them without the private key ? We don't want to have the private key anywhere in the code.

How to access all the bitcoins in all those addresses at once ? Is it possible to receive the bitcoins in unique addresses but in the same account ?

Best regards,

you could use electrum => create a new HD wallet, then export the xpub and use this xpub to derive new addresses on your ecommerce site.
This way, you can derive as many addresses as you want without the xprv (or any derived private key for that matter) ever touching your server.

If you want extra security, you can generate the electrum wallet on an airgapped machine, or use a hardware wallet (they're HD to)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
stripykitteh
Legendary
*
Offline Offline

Activity: 1176
Merit: 1001

CryptoTalk.Org - Get Paid for every Post!


View Profile
November 24, 2017, 10:20:51 AM
 #3

Hello,

We want to accept bitcoin on our ecommerce, we want each user to have a unique bitcoin address.

How to generate those addresses ? Is it possible to generate them without the private key ? We don't want to have the private key anywhere in the code.

How to access all the bitcoins in all those addresses at once ? Is it possible to receive the bitcoins in unique addresses but in the same account ?

Best regards,
Have you tried integrating a Vanity address program in the website? That can make custom addresses for the users.

 
                                . ██████████.
                              .████████████████.
                           .██████████████████████.
                        -█████████████████████████████
                     .██████████████████████████████████.
                  -█████████████████████████████████████████
               -███████████████████████████████████████████████
           .-█████████████████████████████████████████████████████.
        .████████████████████████████████████████████████████████████
       .██████████████████████████████████████████████████████████████.
       .██████████████████████████████████████████████████████████████.
       ..████████████████████████████████████████████████████████████..
       .   .██████████████████████████████████████████████████████.
       .      .████████████████████████████████████████████████.

       .       .██████████████████████████████████████████████
       .    ██████████████████████████████████████████████████████
       .█████████████████████████████████████████████████████████████.
        .███████████████████████████████████████████████████████████
           .█████████████████████████████████████████████████████
              .████████████████████████████████████████████████
                   ████████████████████████████████████████
                      ██████████████████████████████████
                          ██████████████████████████
                             ████████████████████
                               ████████████████
                                   █████████
.CryptoTalk.org.|.MAKE POSTS AND EARN BTC!.🏆
HeRetiK
Legendary
*
Offline Offline

Activity: 2940
Merit: 2092



View Profile
November 24, 2017, 11:09:50 AM
 #4

Hello,

We want to accept bitcoin on our ecommerce, we want each user to have a unique bitcoin address.

How to generate those addresses ? Is it possible to generate them without the private key ? We don't want to have the private key anywhere in the code.

How to access all the bitcoins in all those addresses at once ? Is it possible to receive the bitcoins in unique addresses but in the same account ?

Best regards,


If you already have a node running or plan on running your own node, take a look at BitPay's bitcore npm module (and its related packages):

https://www.npmjs.com/package/bitcore


If you prefer to avoid running your own node and have no security or other concerns about using a third party provider, take a look at blockchain's API:

https://blockchain.info/api/api_receive


In both cases you should be able to use aforementioned xpub key to generate BTC addresses without having to expose the private keys from whatever airgapped device or hardware wallet you are using.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!