Bitcoin Forum
May 12, 2024, 12:26:10 AM *
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,
1715473570
Hero Member
*
Offline Offline

Posts: 1715473570

View Profile Personal Message (Offline)

Ignore
1715473570
Reply with quote  #2

1715473570
Report to moderator
1715473570
Hero Member
*
Offline Offline

Posts: 1715473570

View Profile Personal Message (Offline)

Ignore
1715473570
Reply with quote  #2

1715473570
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715473570
Hero Member
*
Offline Offline

Posts: 1715473570

View Profile Personal Message (Offline)

Ignore
1715473570
Reply with quote  #2

1715473570
Report to moderator
1715473570
Hero Member
*
Offline Offline

Posts: 1715473570

View Profile Personal Message (Offline)

Ignore
1715473570
Reply with quote  #2

1715473570
Report to moderator
1715473570
Hero Member
*
Offline Offline

Posts: 1715473570

View Profile Personal Message (Offline)

Ignore
1715473570
Reply with quote  #2

1715473570
Report to moderator
mocacinno
Legendary
*
Offline Offline

Activity: 3388
Merit: 4922


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: 2926
Merit: 2091


Cashback 15%


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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
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!