Bitcoin Forum
August 14, 2018, 09:03:54 AM *
News: Latest stable version of Bitcoin Core: 0.16.2  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How can I make a unique bitcoin address for multiple users on my website?  (Read 878 times)
WagerBTC
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!!!
1534237434
Hero Member
*
Offline Offline

Posts: 1534237434

View Profile Personal Message (Offline)

Ignore
1534237434
Reply with quote  #2

1534237434
Report to moderator
1534237434
Hero Member
*
Offline Offline

Posts: 1534237434

View Profile Personal Message (Offline)

Ignore
1534237434
Reply with quote  #2

1534237434
Report to moderator
BOUNTY PORTALS
BLOG
WHERE BOUNTY MANAGEMENT
MEETS AUTOMATION
SIGNATURE CAMPAIGNS
TWITTER
FACEBOOK
MEDIA CAMPAIGNS
AND MORE!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1534237434
Hero Member
*
Offline Offline

Posts: 1534237434

View Profile Personal Message (Offline)

Ignore
1534237434
Reply with quote  #2

1534237434
Report to moderator
1534237434
Hero Member
*
Offline Offline

Posts: 1534237434

View Profile Personal Message (Offline)

Ignore
1534237434
Reply with quote  #2

1534237434
Report to moderator
1534237434
Hero Member
*
Offline Offline

Posts: 1534237434

View Profile Personal Message (Offline)

Ignore
1534237434
Reply with quote  #2

1534237434
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
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: 1202
Merit: 1000


blockchain.io


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!