Bitcoin Forum
November 01, 2024, 06:06:49 AM *
News: Bitcoin Pumpkin Carving Contest
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 »  All
  Print  
Author Topic: How exchanges make wallet adresses?  (Read 782 times)
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
March 28, 2018, 02:05:43 PM
 #21

See the following link to learn how to compute an address from a public key:
https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses
Thanks much!
So, ./bitcoind (now ./bitcoin-cli ?)  does not provide simple one function to make Address?

ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
March 28, 2018, 02:16:34 PM
 #22

Thanks much!
So, ./bitcoind (now ./bitcoin-cli ?)  does not provide simple one function to make Address?
It does. The command is getnewaddress.


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
DannyHamilton
Legendary
*
Offline Offline

Activity: 3472
Merit: 4801



View Profile
March 28, 2018, 03:11:38 PM
 #23

See the following link to learn how to compute an address from a public key:
https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses
Thanks much!
So, ./bitcoind (now ./bitcoin-cli ?)  does not provide simple one function to make Address?

As ranchigo explained, you can just make a request to the client if you prefer, but it is not necessary to install and run a full client just to create addresses if you don't want to.

Some people use the client.  Some people prefer to write their own software that is faster and less complicated.
Kakmakr
Legendary
*
Offline Offline

Activity: 3542
Merit: 1965

Leading Crypto Sports Betting & Casino Platform


View Profile
March 29, 2018, 06:55:11 AM
 #24

Where are these private keys kept? If they are created on the fly, it must be generated online and the keys stored online? This in my opinion is very risky.

The other alternative of generating it offline and storing only the public address in a online database, makes more sense. I know my local exchange does not allow for the signing of any address, so they are maintaining a high level of security with these private keys. < I still prefer to manage my own private keys, but if you have to use exchanges, you then have no choice>

It must be a massive and risky endeavour to extract all the forked coins from these millions of private keys for the bigger exchanges?

..Stake.com..   ▄████████████████████████████████████▄
   ██ ▄▄▄▄▄▄▄▄▄▄            ▄▄▄▄▄▄▄▄▄▄ ██  ▄████▄
   ██ ▀▀▀▀▀▀▀▀▀▀ ██████████ ▀▀▀▀▀▀▀▀▀▀ ██  ██████
   ██ ██████████ ██      ██ ██████████ ██   ▀██▀
   ██ ██      ██ ██████  ██ ██      ██ ██    ██
   ██ ██████  ██ █████  ███ ██████  ██ ████▄ ██
   ██ █████  ███ ████  ████ █████  ███ ████████
   ██ ████  ████ ██████████ ████  ████ ████▀
   ██ ██████████ ▄▄▄▄▄▄▄▄▄▄ ██████████ ██
   ██            ▀▀▀▀▀▀▀▀▀▀            ██ 
   ▀█████████▀ ▄████████████▄ ▀█████████▀
  ▄▄▄▄▄▄▄▄▄▄▄▄███  ██  ██  ███▄▄▄▄▄▄▄▄▄▄▄▄
 ██████████████████████████████████████████
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█  ▄▀▄             █▀▀█▀▄▄
█  █▀█             █  ▐  ▐▌
█       ▄██▄       █  ▌  █
█     ▄██████▄     █  ▌ ▐▌
█    ██████████    █ ▐  █
█   ▐██████████▌   █ ▐ ▐▌
█    ▀▀██████▀▀    █ ▌ █
█     ▄▄▄██▄▄▄     █ ▌▐▌
█                  █▐ █
█                  █▐▐▌
█                  █▐█
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀█
▄▄█████████▄▄
▄██▀▀▀▀█████▀▀▀▀██▄
▄█▀       ▐█▌       ▀█▄
██         ▐█▌         ██
████▄     ▄█████▄     ▄████
████████▄███████████▄████████
███▀    █████████████    ▀███
██       ███████████       ██
▀█▄       █████████       ▄█▀
▀█▄    ▄██▀▀▀▀▀▀▀██▄  ▄▄▄█▀
▀███████         ███████▀
▀█████▄       ▄█████▀
▀▀▀███▄▄▄███▀▀▀
..PLAY NOW..
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
April 06, 2018, 10:50:16 PM
 #25

See the following link to learn how to compute an address from a public key:
https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses
Thanks much!
So, ./bitcoind (now ./bitcoin-cli ?)  does not provide simple one function to make Address?

As ranchigo explained, you can just make a request to the client if you prefer, but it is not necessary to install and run a full client just to create addresses if you don't want to.

Some people use the client.  Some people prefer to write their own software that is faster and less complicated.
How to write own software? So just use same algo that some coin uses, and just make address from that algo? Are there any example code?
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
April 06, 2018, 10:51:44 PM
 #26

Where are these private keys kept? If they are created on the fly, it must be generated online and the keys stored online? This in my opinion is very risky.
Why this is risky?

So if daemon is running on exchange's server, then it means that daemon's private key is also exist in daemon? So you means it is risky?

If hacker come in server, then he can know that daemon's private key?
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
April 19, 2018, 04:53:49 AM
 #27

Why this is risky? (bump)

So user can try http injection attack to know wallet's secret key?
When user click that [generate address] button?
hushan
Member
**
Offline Offline

Activity: 61
Merit: 15


View Profile
April 19, 2018, 11:58:31 PM
 #28

For online bitcoin wallets, most exchanges will use HD(BIP32) wallets, it will generic the extended key offline, store the correspondent public key on the server, and it only needs to allocate an index number to each user, then new addresses can be generated on the fly whenever user requested a new address.
By using HD wallets, it is much easier to manager, because there is only one private key. Also it is much simple to operate, because each user can have as many new addresses as they want, technically 232-1 addresses, and no private key is needed to generate new addresses.

BTC: 38ykUxZeSv5aqav1keCc4KUxXLPPGkfrm5 LTC: MPpWNvqDCVB1PHJt4A28j9oFfc6Y1KKDno ETH: 0x07C8c68d5253247038947EF9495b054160c8737c
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
April 20, 2018, 12:16:22 AM
 #29

For online bitcoin wallets, most exchanges will use HD(BIP32) wallets, it will generic the extended key offline, store the correspondent public key on the server, and it only needs to allocate an index number to each user, then new addresses can be generated on the fly whenever user requested a new address.
By using HD wallets, it is much easier to manager, because there is only one private key. Also it is much simple to operate, because each user can have as many new addresses as they want, technically 232-1 addresses, and no private key is needed to generate new addresses.
Then what if the alt-coins that does not have HD wallet features?

And most exchange just give 1 address for each coin per 1 user. And user also does not need more than 1 address. And it(multiple addresses per coin per user) only confuses and make it complicated to manage from point of view of exchange.

Are there any actual reason for give more than 1 address?

So point is, you saying about make bunch of addresses before (like 1 million addresses) and store them in DB?
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
April 20, 2018, 06:43:59 AM
 #30

And how to make like 1 million bitcoin addresses? I am running bitcoind at my server.

so there I can use [ bitcoin-cli getnewaddress ]

then how to do it?
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
April 20, 2018, 11:03:08 AM
 #31

Why this is risky? (bump)

So user can try http injection attack to know wallet's secret key?
When user click that [generate address] button?


You don't have to store the private keys / seed on your online server just to create new addresses.
You could simply use the Master public key. Public keys (and therefore addresses) can be dervied from this key, without the risk of private keys getting exposed/compromised.




So point is, you saying about make bunch of addresses before (like 1 million addresses) and store them in DB?

This can definetely be done. It does not expose any private keys to theft.

hushan
Member
**
Offline Offline

Activity: 61
Merit: 15


View Profile
April 20, 2018, 03:06:23 PM
 #32

For online bitcoin wallets, most exchanges will use HD(BIP32) wallets, it will generic the extended key offline, store the correspondent public key on the server, and it only needs to allocate an index number to each user, then new addresses can be generated on the fly whenever user requested a new address.
By using HD wallets, it is much easier to manager, because there is only one private key. Also it is much simple to operate, because each user can have as many new addresses as they want, technically 232-1 addresses, and no private key is needed to generate new addresses.
Then what if the alt-coins that does not have HD wallet features?

And most exchange just give 1 address for each coin per 1 user. And user also does not need more than 1 address. And it(multiple addresses per coin per user) only confuses and make it complicated to manage from point of view of exchange.

Are there any actual reason for give more than 1 address?

So point is, you saying about make bunch of addresses before (like 1 million addresses) and store them in DB?


If a coin does not have HD feature, then you will have to go to the old way, i.e. pre generate lots of keys and addresses, and assign them to customers.

Actually, uses DOES need multiple addresses, most exchanges let the use generate new addresses as they want.

The point of HD is, you don't make bunch of address beforehand, you can generate new addresses on demand, but you neither store multiple private keys(only one master key), nor do you need to store keys in db, you just need to store the hd key path. When transactions are needed, you can always generate keys from the key path.

BTC: 38ykUxZeSv5aqav1keCc4KUxXLPPGkfrm5 LTC: MPpWNvqDCVB1PHJt4A28j9oFfc6Y1KKDno ETH: 0x07C8c68d5253247038947EF9495b054160c8737c
DannyHamilton
Legendary
*
Offline Offline

Activity: 3472
Merit: 4801



View Profile
April 21, 2018, 01:47:43 AM
 #33

And how to make like 1 million bitcoin addresses? I am running bitcoind at my server.

Are you creating an exchange?

Huh

Please let us know what the name of your exchange will be.
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
April 21, 2018, 04:24:08 AM
 #34

And how to make like 1 million bitcoin addresses? I am running bitcoind at my server.

Are you creating an exchange?

Huh

Please let us know what the name of your exchange will be.
Yes not myself alone, but making exchange is true.
Why?
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
April 21, 2018, 04:40:59 AM
Last edit: April 21, 2018, 06:55:30 AM by wsxdrfv
 #35

If a coin does not have HD feature, then you will have to go to the old way, i.e. pre generate lots of keys and addresses, and assign them to customers.

Actually, uses DOES need multiple addresses, most exchanges let the use generate new addresses as they want.

The point of HD is, you don't make bunch of address beforehand, you can generate new addresses on demand, but you neither store multiple private keys(only one master key), nor do you need to store keys in db, you just need to store the hd key path. When transactions are needed, you can always generate keys from the key path.
Thanks.
So what is HD key path?
and are there any  bad things to use old wallet? There are coins not having HD wallet listed on some exchange right?

And how about none-HD coin and just realtime generate when user request with coin daemon on server? Why this is dangerous?

hieu81
Sr. Member
****
Offline Offline

Activity: 518
Merit: 250



View Profile
April 21, 2018, 05:43:42 AM
 #36

So at exchanges, so many coins. For each of them, they provide deposit addresses.

If you are engineer, need to implement that, how to do?

Maybe using that coin's daemon?

How is specific procedure of it?

Thanks.
Depending on the specific currency, they will use different wallet and management methods. For example, with XMR coin, they use a Payment ID, with Bitcoin or other coin using the same algorithm they will use for Public key!
wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
April 21, 2018, 06:33:41 AM
 #37

How do you think this article? This says HD wallet's flaw?

https://bitcoinmagazine.com/articles/deterministic-wallets-advantages-flaw-1385450276/
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
April 21, 2018, 09:09:08 AM
 #38

Are you creating an exchange?

Huh

Please let us know what the name of your exchange will be.
Yes not myself alone, but making exchange is true.
Why?

Probably because he wants to make sure to never use your exchange.
Without offending you, but if you have to ask such basic questions i highly suspect your 'exchange' will be vulnerable to any kind of attacks.

DannyHamilton is one of the nice guys who ask you this question to never use your exchange.
But there are also another kind of people.. those who will definetely make use of your weak exchange to get a quick buck.

If you really want to open an exchange, i'd suggest you hire a professional team.

wsxdrfv (OP)
Jr. Member
*
Offline Offline

Activity: 413
Merit: 5


View Profile WWW
April 21, 2018, 09:23:11 AM
 #39

Are you creating an exchange?

Huh

Please let us know what the name of your exchange will be.
Yes not myself alone, but making exchange is true.
Why?

Probably because he wants to make sure to never use your exchange.
Without offending you, but if you have to ask such basic questions i highly suspect your 'exchange' will be vulnerable to any kind of attacks.

DannyHamilton is one of the nice guys who ask you this question to never use your exchange.
But there are also another kind of people.. those who will definetely make use of your weak exchange to get a quick buck.

If you really want to open an exchange, i'd suggest you hire a professional team.
Of course I am not in charge about security, professional will involve soon.
This is just curiosity and learn.
The best one
Newbie
*
Offline Offline

Activity: 168
Merit: 0


View Profile
April 27, 2018, 10:55:34 PM
 #40

How to apply this to alt-coin?

Depends of your altcoin (especially the address prefix, which is 0x00 for bitcoin). Change prefix, recompile, should work.

As for me how exchange make wallet address  This depends on what you're trying to do.  If you don't mind the multiple receiving addresses holding balances, then use some wallet software which will give you as many addresses as you need, and it will let you select which addresses you want to send from Online wallet: http://www.blockchain.info If you really actually want to sweep coins from the receiving addresses into wallet address (perhaps you keep the private key of the wallet address offline for security), then you will need to build a small bot to periodically check the balances of the receiving addresses, and then make a payment to the wallet address - I don't believe there is a strong wallet service that currently has this functionality at the moment, but I look forward to be corrected thank you.
Pages: « 1 [2] 3 »  All
  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!