Author

Topic: Multiple addresses on multiple coins (Read 240 times)

legendary
Activity: 2352
Merit: 6089
bitcoindata.science
July 30, 2019, 07:02:56 PM
#6
To complement Heretik answer.

I think you can play by yourself in this website, and you will see how  HD wallets works. It is a very illustrative exercise.
https://www.iancoleman.io/bip39

Insert a seed there. Then you choose the coin you want. You will see that many public address and privatekeys were generated from that seed.

Now go and choose another coin.
You can also play with derivation path (segwit/legacy for example)s and account numbers (for different users )

You will soon realize that the same sed can generate almost unlimited addresses for each coin  (unlimited to our limited perspective as humans, but there are only a few billions per seed).
legendary
Activity: 3346
Merit: 3125
July 30, 2019, 10:54:31 AM
#5
... I want to know everything about this process, at least the technical part

The technical part of this could be done with different code languages. In my experience, I have worked with JS on a process similar, you need a bitcoin core wrapper and a database. This way you can make a call from JS to bitcoin core and this way create the new address, after that save that address on a variable, the last step is to write the new address on the database where you have the users data.

If you search in google 'bitcoin wrapper' you will find the codes to do it.
legendary
Activity: 3122
Merit: 2178
Playgram - The Telegram Casino
July 30, 2019, 04:15:09 AM
#4
To extend on Ryutaro's quote regarding HD wallets: Imagine these wallets like a tree -- which is where the "hierarchical" part comes from. Each leaf is an address. Each small branch is a user account. Each big branch is a cryptocurrency. Each big branch grows from a trunk that grows out of a seed.

In more technical terms, the seed is random binary data from where in the end every private key is derived from. As a user you will commonly see this in form of a BIP-39 mnemonic seed phrase:
https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki

Using this seed, the tree is "grown" according to BIP-32 and BIP-44:
https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki
https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki

With each cryptocurrency branch having their own derivation path according to a coin type as registered and documented in SLIP-44:
https://github.com/satoshilabs/slips/blob/master/slip-0044.md

Note that it is possible to generate the public keys and the corresponding addresses independently of each address' private key. This is usually referred to as a watch-only wallet and is necessary for security to allow for cold storage while still being able to automatically generate addresses.

Also note that the actual implementation may widely differ from exchange to exchange.
full member
Activity: 202
Merit: 180
It's precious, protect it!
July 30, 2019, 12:20:00 AM
#3
Quote
My guess is that they're using hierarchical deterministic wallets (HD wallets), and assigning each user successive keys from the derived chain of keys. HD wallets have a neat cryptographic property where you can have a seed that allows you to derive a sequence of public keys, but deriving the corresponding private keys requires a separate seed. That means that the server that assigns user deposit addresses can be incapable of accessing the corresponding private keys.
source
legendary
Activity: 2758
Merit: 6830
July 29, 2019, 05:51:57 PM
#2
Well, most coins have a full node software. The exchange runs their own node and use the software API to generate new addresses and link them to each user on their database. There is no way to describe the exact process for every coin because each has a different software, API and technical technical specifics, but the theory is pretty much the same.
jr. member
Activity: 301
Merit: 7
July 29, 2019, 11:41:46 AM
#1
How do exchange sites generate multiple different addresses for different users, i only know for Bitcoin. I want to know everything about this process, at least the technical part



Thanks.
Jump to: