<p>You should not ask users for their private keys. Instead, generate new addresses (with private keys) for the users to deposit bitcoin into. Then ensure you keep those keys safe and secure, back them up and keep them encrypted</p>

CC BY-SA 3.0
2017-09-04T22:47:49.567Z
And then I shouldn't save the private key on databases?
西田龍
CC BY-SA 3.0
2017-09-04T23:05:04.207Z
You can use a bitcoin library or node to manage the keys for you, you only need the private keys when trying to spend the coins, not receive them
meshcollider
CC BY-SA 3.0
2017-09-05T09:22:28.667Z
Yeah but I need to send their account so I need privacy key.i use bitcoind
西田龍
CC BY-SA 3.0
2017-09-05T09:24:27.123Z
You can interact with bitcoind's RPC interface to create new addresses and it will manage the private keys for you. By the way, if you are happy with my answer, please accept it :)
meshcollider
CC BY-SA 3.0
2017-09-04T11:48:52.767Z
2017-09-04T11:48:52.767Z
meshcollider
<p>I'm making a service and I will have to take charge of users' private keys
So I'm really worried about it.how should i take charge of that?</p>

<bitcoin-core><bitcoind><private-key>
where is the bitcoin's private key saved?
西田龍
# where is the bitcoin's private key saved?

(Asked by: username_0 on 2017-09-04)

I'm making a service and I will have to take charge of users' private keys
So I'm really worried about it.how should i take charge of that?

**Tags:** bitcoin-core, bitcoind, private-key


---

## 1 answers

### Answer by username_1 on 2017-09-04. Score: 1 | Accepted answer

You should not ask users for their private keys. Instead, generate new addresses (with private keys) for the users to deposit bitcoin into. Then ensure you keep those keys safe and secure, back them up and keep them encrypted

> **Comments:**
> **username_0**: And then I shouldn't save the private key on databases?  
> **username_1**: You can use a bitcoin library or node to manage the keys for you, you only need the private keys when trying to spend the coins, not receive them  
> **username_0**: Yeah but I need to send their account so I need privacy key.i use bitcoind  
> **username_1**: You can interact with bitcoind's RPC interface to create new addresses and it will manage the private keys for you. By the way, if you are happy with my answer, please accept it :)  

---

