Bitcoin Forum
May 06, 2024, 05:59:28 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How can I make a unique bitcoin address for multiple users on my website?  (Read 941 times)
WagerBTC (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
November 14, 2013, 09:41:20 PM
 #1

So I am trying to make a browser based casino style game. I was initially going to create 100 bitcoin addresses through coinbase (coinbase account would only be dedicated for the website) and put them into a database and just pull the address from the database when somebody went to create a new account. I could always add more addresses to the database if there were more accounts made.

I am almost certain that my method will work, but does anybody have any other input on this type of issue?

I have been trying to search on the forum for the past few days and could not find a better solution to this problem yet.

If somebody can post a topic that is similar to this type of issue, I would appreciate it if you could post the topic in this thread.

I was trying to see if there was a sort of smoother way in doing this, rather than allotting a bunch of bitcoin addresses in my database. Maybe whenever somebody clicks create new account it would have their bitcoin address right at the top of the form (that would change everytime the create new account button is hit, until they submit the form)

Just doing some brainstorming for this part of my website, considering this is one of, if not the main part of the website.

Thanks!!!
1714975168
Hero Member
*
Offline Offline

Posts: 1714975168

View Profile Personal Message (Offline)

Ignore
1714975168
Reply with quote  #2

1714975168
Report to moderator
1714975168
Hero Member
*
Offline Offline

Posts: 1714975168

View Profile Personal Message (Offline)

Ignore
1714975168
Reply with quote  #2

1714975168
Report to moderator
1714975168
Hero Member
*
Offline Offline

Posts: 1714975168

View Profile Personal Message (Offline)

Ignore
1714975168
Reply with quote  #2

1714975168
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714975168
Hero Member
*
Offline Offline

Posts: 1714975168

View Profile Personal Message (Offline)

Ignore
1714975168
Reply with quote  #2

1714975168
Report to moderator
1714975168
Hero Member
*
Offline Offline

Posts: 1714975168

View Profile Personal Message (Offline)

Ignore
1714975168
Reply with quote  #2

1714975168
Report to moderator
12648430
Full Member
***
Offline Offline

Activity: 144
Merit: 100


View Profile
November 14, 2013, 09:59:51 PM
 #2

Hierarchical Deterministic Wallets are the ideal way to do this, so that you can generate new addresses on the server as needed but the server has no ability to spend. There are implementations in python, Java, C++, and Ruby here: https://en.bitcoin.it/wiki/BIP_0032#Implementations
You could also communicate with Electrum over RPC.
WagerBTC (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
November 14, 2013, 11:44:45 PM
 #3

Hierarchical Deterministic Wallets are the ideal way to do this, so that you can generate new addresses on the server as needed but the server has no ability to spend. There are implementations in python, Java, C++, and Ruby here: https://en.bitcoin.it/wiki/BIP_0032#Implementations
You could also communicate with Electrum over RPC.

I have been reading into Electrum and I still have to figure out which coding would be most secure. I am most familiar with Js so I will be looking into the implementations next. Thanks a lot for the response!
Boussac
Legendary
*
Offline Offline

Activity: 1220
Merit: 1015


e-ducat.fr


View Profile WWW
November 15, 2013, 06:31:37 PM
 #4

I posted recently the code of a webshop (Rails) integrating an electrum wallet: the app is using the master public key to generate a new address for each new invoice. It is deployed on microbitcoin.net. I hope this can help.
The thread is here.

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!