Bitcoin Forum
July 29, 2024, 10:31:57 PM *
News: Help 1Dq create 15th anniversary forum artwork.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How does exchanges generate addresses  (Read 176 times)
ThisManIsTesting (OP)
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
February 12, 2018, 05:46:08 AM
 #1

Hello Everyone,
I was wondering which method do big exchanges like binance, bitstamp, bitfinex ... generate bitcoin addresses, or any other altcoins addresses in mass for their users.
Possibly through a wallet installed in VPS then rely it to the website with json rpc as API ?

Regards,
ThisManIsTesting.
Colorblind
Member
**
Offline Offline

Activity: 392
Merit: 41

This text is irrelevant


View Profile
February 12, 2018, 08:28:04 AM
 #2

Hello Everyone,
I was wondering which method do big exchanges like binance, bitstamp, bitfinex ... generate bitcoin addresses, or any other altcoins addresses in mass for their users.
Possibly through a wallet installed in VPS then rely it to the website with json rpc as API ?

Regards,
ThisManIsTesting.

My guess is they create proprietary wallet that generates addresses en-masse once (like 10 millions of adresses). Then they can simply pick any address and assign it to user permanently.
HeRetiK
Legendary
*
Offline Offline

Activity: 3010
Merit: 2124


Playgram - The Telegram Casino


View Profile
February 12, 2018, 11:05:37 AM
 #3

Hello Everyone,
I was wondering which method do big exchanges like binance, bitstamp, bitfinex ... generate bitcoin addresses, or any other altcoins addresses in mass for their users.
Possibly through a wallet installed in VPS then rely it to the website with json rpc as API ?

Regards,
ThisManIsTesting.


I guess most exchanges use some sort of hierarchical deterministic wallet as defined by BIP0032:

https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki

Hard to say though whether they use their own homebrewn implementation or base it on one of the existing implementations. Both approaches have their up and downsides, so this will likely differ from exchange to exchange and their respective tech stack.

▄▄███████▄▄███████
▄███████████████▄▄▄▄▄
▄████████████████████▀░
▄█████████████████████▄░
▄█████████▀▀████████████▄
██████████████▀▀█████████
████████████████████████
██████████████▄▄█████████
▀█████████▄▄████████████▀
▀█████████████████████▀░
▀████████████████████▄░
▀███████████████▀▀▀▀▀
▀▀███████▀▀███████

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 
Playgram.io
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▄▄▄░░
▀▄







▄▀
▀▀▀░░
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
██████▄▄███████▄▄████████
███▄███████████████▄░░▀█▀
███████████░█████████░░
░█████▀██▄▄░▄▄██▀█████░
█████▄░▄███▄███▄░▄█████
███████████████████████
███████████████████████
██░▄▄▄░██░▄▄▄░██░▄▄▄░██
██░░░░██░░░░██░░░░████
██░░░░██░░░░██░░░░████
██▄▄▄▄▄██▄▄▄▄▄██▄▄▄▄▄████
███████████████████████
███████████████████████
 
PLAY NOW

on Telegram
monkeydominicorobin
Full Member
***
Offline Offline

Activity: 294
Merit: 104


✪ NEXCHANGE | BTC, LTC, ETH & DOGE ✪


View Profile
February 12, 2018, 11:50:44 AM
 #4

Hello Everyone,
I was wondering which method do big exchanges like binance, bitstamp, bitfinex ... generate bitcoin addresses, or any other altcoins addresses in mass for their users.
Possibly through a wallet installed in VPS then rely it to the website with json rpc as API ?

Regards,
ThisManIsTesting.

They don't generate addresses themselves they make use of api most of the time.

patt0
Legendary
*
Offline Offline

Activity: 1694
Merit: 1005


Betting Championship betking.io/sports-leaderboard


View Profile
February 12, 2018, 04:57:57 PM
 #5

I'm actually more concerned about how exchanges uses their addresses instead on how they create them.
For instance I keep hearing that exchanges don't batch transactions, and because of that they spam the network and contribute for the high fees. I know they are lower now, so maybe they started doing this?

Also I hear coinbase had a few addresses that has to many outputs (transactions made). I don't know how exactly this influences the fees value, but I know it does, and basically those addresses were unsustainable, meaning that the cost they would pay to transact any amount of BTC that was in that address would generate a fee larger than the BTC being transacted.

How do they manage this? And are you aware of more exchanges having these problems?

HeRetiK
Legendary
*
Offline Offline

Activity: 3010
Merit: 2124


Playgram - The Telegram Casino


View Profile
February 12, 2018, 05:27:02 PM
 #6

I'm actually more concerned about how exchanges uses their addresses instead on how they create them.
For instance I keep hearing that exchanges don't batch transactions, and because of that they spam the network and contribute for the high fees. I know they are lower now, so maybe they started doing this?

[...]

If I remember correctly Coinbase has been the only major exchange that didn't batch transactions for a long time. I think they fixed it by now, but I'm not sure.

▄▄███████▄▄███████
▄███████████████▄▄▄▄▄
▄████████████████████▀░
▄█████████████████████▄░
▄█████████▀▀████████████▄
██████████████▀▀█████████
████████████████████████
██████████████▄▄█████████
▀█████████▄▄████████████▀
▀█████████████████████▀░
▀████████████████████▄░
▀███████████████▀▀▀▀▀
▀▀███████▀▀███████

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 
Playgram.io
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▄▄▄░░
▀▄







▄▀
▀▀▀░░
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
██████▄▄███████▄▄████████
███▄███████████████▄░░▀█▀
███████████░█████████░░
░█████▀██▄▄░▄▄██▀█████░
█████▄░▄███▄███▄░▄█████
███████████████████████
███████████████████████
██░▄▄▄░██░▄▄▄░██░▄▄▄░██
██░░░░██░░░░██░░░░████
██░░░░██░░░░██░░░░████
██▄▄▄▄▄██▄▄▄▄▄██▄▄▄▄▄████
███████████████████████
███████████████████████
 
PLAY NOW

on Telegram
ThisManIsTesting (OP)
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
February 13, 2018, 03:10:25 AM
 #7

I guess most exchanges use some sort of hierarchical deterministic wallet as defined by BIP0032:
[...]
Well You think they're using a the bitcoin core to generate addresses ?
About replies mentioning APIs, look at binance they've multiple coins so maintaining APIs will be definitely hell.

Still looking for a more accurate answer.
achow101
Staff
Legendary
*
Offline Offline

Activity: 3458
Merit: 6793


Just writing some code


View Profile WWW
February 13, 2018, 05:00:24 AM
Merited by harizen (5)
 #8

Well You think they're using a the bitcoin core to generate addresses ?
Using BIP 32 does not mean that they are using Bitcoin Core.

IIRC Bitfinex, Bitstamp, and Kraken use BitGo to store their Bitcoin. They interact with Bitgo via an API. Other exchanges may be doing the same. They may also be rolling their own wallet software. Some may also be using Bitcoin Core.

Some exchanges also use Armory to store their Bitcoin.

Presumably when you request an address, you send a request to the web server which then sends a request to some other server which has the addresses to get the address that it then serves to you.



How exchanges are actually setup is generally not known to people outside of the exchange. This sort of security critical infrastructure is not revealed to the public so that they can get some security through obscurity.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!