<blockquote>
  <p>In exchanges like Binance when a user wants to deposit coins in bitcoin or in other coins, per user receives a unique public key?Do they have to generate pair key private/public key for each user in each coin?</p>
</blockquote>

<p>I suppose they must be using a <a href="https://medium.com/@harshagoli/hd-wallets-explained-from-high-level-to-nuts-and-bolts-9a41545f5b0" rel="nofollow noreferrer">HD wallet</a> for each users, but since one you send them your coins, everything happen in their back end they can do everything they want with them, especially for coins that dont support HD wallet, they could just generate private key then link them together in one of their database.</p>

<blockquote>
  <p>Or there is a way that we can have many public key for a special private key and Binance had one private key and unlimited public key related to that?</p>
</blockquote>

<p>Yes, this kind of "special private key" is called a <a href="https://en.bitcoin.it/wiki/Deterministic_wallet" rel="nofollow noreferrer">Hierarchical Deterministic Wallets</a> and will allow you to generate an infinite amount of private key and so public keys, addresses derivated from a master seed, and so if you know this seed you can link those private keys together</p>

<p>This technology is used in personal wallet software like mobile wallet, but as I said since we dont have access to the back end of exchanges like binance they could use other tactics to organize their users funds.</p>

CC BY-SA 4.0
2019-11-07T16:30:54.320Z
especially for coins that dont support HD wallet, they could just generate private key then link them together in one of their database.
Could you please give me some more details? link together in one of thier, What do you mean?
Hamid Naghipour
CC BY-SA 4.0
2019-11-07T16:51:41.023Z
When you want to send or receive bitcoin on an exchange, they dont have to use the UTXO of the previous coins you have send to them, they can use the UTXO of all their users for their balance, you should check the answer to this question https://bitcoin.stackexchange.com/questions/76174/how-do-cryptocurrency-exchanges-handle-users-accounts?rq=1
Saxtheowl
CC BY-SA 4.0
2019-11-07T12:47:08.263Z
2019-11-07T12:47:08.263Z
Saxtheowl
<p>There must be 2 solutions:</p>
<p><strong>Solution 1</strong>: Using HD wallets, makes it possible to generate many addresses in a unique wallet (single PK). In this way, we can provide a new address for each deposit and keep track of.</p>
<p><strong>Solution 2</strong>: Generate a life-time address for a user and keep track of deposits.
For more info check this <a href="https://bitcoin.stackexchange.com/a/98508/105862">answer</a>.</p>

CC BY-SA 4.0
2020-08-12T11:57:50.627Z
2020-08-12T11:57:50.627Z
Emad Mamaghani
<p>In exchanges like Binance when a user wants to deposit bitcoins or other coins each user receives a unique public key? Do they have to generate pair key private/public key for each user in each coin? Or is there a way that we can have many public key for a special private key and Binance has one private key and unlimited public key related to that?</p>
<p>If anybody have a good reference please let me know or give me description about this subject. thanks.</p>

CC BY-SA 4.0
2019-11-07T21:37:46.517Z
What you want is an HD wallet. See: BIP32
chytrik
<wallet><exchanges><bip32-hd-wallets><cryptography><binance>
How do exchanges generate deposit address per user for handling cryptocurrency?
Hamid Naghipour
# How do exchanges generate deposit address per user for handling cryptocurrency?

(Asked by: username_0 on 2019-11-07)

In exchanges like Binance when a user wants to deposit bitcoins or other coins each user receives a unique public key? Do they have to generate pair key private/public key for each user in each coin? Or is there a way that we can have many public key for a special private key and Binance has one private key and unlimited public key related to that?

If anybody have a good reference please let me know or give me description about this subject. thanks.

**Tags:** wallet, exchanges, bip32-hd-wallets, cryptography, binance

> **Comments:**
> **username_1**: What you want is an HD wallet. See: BIP32  

---

## 2 answers

### Answer by username_2 on 2019-11-07. Score: 1 | Accepted answer

> In exchanges like Binance when a user wants to deposit coins in bitcoin or in other coins, per user receives a unique public key?Do they have to generate pair key private/public key for each user in each coin?

I suppose they must be using a [HD wallet](https://medium.com/@harshagoli/hd-wallets-explained-from-high-level-to-nuts-and-bolts-9a41545f5b0) for each users, but since one you send them your coins, everything happen in their back end they can do everything they want with them, especially for coins that dont support HD wallet, they could just generate private key then link them together in one of their database.

> Or there is a way that we can have many public key for a special private key and Binance had one private key and unlimited public key related to that?

Yes, this kind of "special private key" is called a [Hierarchical Deterministic Wallets](https://en.bitcoin.it/wiki/Deterministic_wallet) and will allow you to generate an infinite amount of private key and so public keys, addresses derivated from a master seed, and so if you know this seed you can link those private keys together

This technology is used in personal wallet software like mobile wallet, but as I said since we dont have access to the back end of exchanges like binance they could use other tactics to organize their users funds.

> **Comments:**
> **username_0**: especially for coins that dont support HD wallet, they could just generate private key then link them together in one of their database. Could you please give me some more details? link together in one of thier, What do you mean?  
> **username_2**: When you want to send or receive bitcoin on an exchange, they dont have to use the UTXO of the previous coins you have send to them, they can use the UTXO of all their users for their balance, you should check the answer to this question https://bitcoin.stackexchange.com/questions/76174/how-do-cryptocurrency-exchanges-handle-users-accounts?rq=1  

---

### Answer by username_3 on 2020-08-12. Score: 0

There must be 2 solutions:

**Solution 1**: Using HD wallets, makes it possible to generate many addresses in a unique wallet (single PK). In this way, we can provide a new address for each deposit and keep track of.

**Solution 2**: Generate a life-time address for a user and keep track of deposits.
For more info check this [answer](https://bitcoin.stackexchange.com/a/98508/105862).


---

