0

This question was asked here: Bitcoind and multiple users but its answer is a link to a deprecated feature.

If I am running bitcoind on a server and want it to manage multiple users, what is the proper way to authenticate to that server and have separate user accounts, or should I implement user accounts on my own end which interact with a master bitcoind instance?

2

You should implement it as a separate layer.

Bitcoind doesn't really support multiple users. It lets you set a single username/password to connect to the RPC server, as well as encrypting the (single) wallet with a passphrase. But there's no way within bitcoind to have individual authentication credentials that will allow one to spend some of the coins in the wallet but not others.

So a typical way to do this would be to have bitcoind store all the coins of all the users, pooled in a single wallet. Then your software has to track how many coins belong to each user, authenticating the users, and ensuring that they can only spend those coins which are credited to them. (The accounts feature might have helped with the first of these, but not the others.)

Alternatively, you can run a separate bitcoind instance for each user, but this will require more resources.

  • Okay, that's what I was thinking. Sorry, I'm relatively new to the Bitcoin API, do I use it to create a new wallet address for each user, and then track deposits made to that address and use that to credit the user, despite the fact that all of the wallet addresses end up in the single pool? – Antoine Mar 19 '16 at 18:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.