Pages:
Author

Topic: generating and guessing BTC-adresses - page 2. (Read 3983 times)

copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
November 08, 2015, 12:45:17 PM
#8
-snip-
edit: a further questions:
i generated an address. then I encrypted my wallet. nobody can spent my coins even though this address will be generated in the future. right?

No, a private key is nothing more than a number. You encrypt it locally so no one can look at it. If however someone should guess the same number as you, their version is not encrypted and they can use it without the password.
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
November 08, 2015, 11:51:19 AM
#7
@shorena: thank you. do you have a link/source?

-> https://bitcoin.org/en/alert/2013-08-11-android
staff
Activity: 3458
Merit: 6793
Just writing some code
November 08, 2015, 11:43:54 AM
#6

Quote
Most wallets are not designed to check for the address collision as it is impossible....


why is this impossible?
It would need to rescan the blockchain and every transaction to see if that address has been used before. It takes a lot of time to do that so that every time you want a new address, it would take hours for it to finish rescanning.

and how do i know that my newly generated address is really new? i never checked that. so possibly i generate an address and someone else had already generated this one. then you send me some coins. and uups a few weeks later this coins are gone because someone else received them to - by hazard - and spent them.
It is assumed. With a good random number generator, the likelihood of a collision is next to nothing. There have been cases where addresses have been generated multiple times on different devices but that was due to poorly written random number generators. You can check yourself if an address has been used before by just looking it up on a block explorer. However, to do this in a wallet is considered poor practice since it requires using an outside API, which may not be reliable and most good wallets don't want to rely on someone else to do the work.
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
November 08, 2015, 11:31:55 AM
#5
Hi

i have some questions concerning BTC-addresses.

when i generate a new address e.g. with multiunit HD.

Multibit HD?


i uses this wallet:

https://multibit.org

Quote
If two persons generated the same address they share the funds. Each of them can spend everything.

anybody know if this already happened?

It did, but only because the wallets did not use the whole range of possible private keys. Due to a bug on android devices the range was limited to 232 or 4294967296 which is quite small compared to 2160 or 1.4615016373309029182036848327163 * 1048 which is a number with 49 decimal digits.
hero member
Activity: 630
Merit: 502
November 08, 2015, 09:15:25 AM
#4
Hi

i have some questions concerning BTC-addresses.

when i generate a new address e.g. with multiunit HD.
- my wallets knows all the addresses that have been generated yet?
- are theses addresses saved in the blockchain?
- as far as i know the address is saved in the blockchain when it was used. you can generate an address offline, right?
- if two persons generate the same address offline and then start to use it. what will happen?
- is it possible to guess a specific address? and when my guess is correct and this wallet is not encrypted.

thanks for answers.

I'm pretty sure you wont hit any dublicates, since the system will not allow it.
Most wallets are not designed to check for the address collision as it is impossible. A weak random number generator can make private keys guessable or if the random number generator is bugged and it can generate the same address everytime. See the most recent incident in blockchain.info android app.
member
Activity: 122
Merit: 10
Bitcoin Investor & Programmer
November 08, 2015, 08:07:19 AM
#3
Hi

i have some questions concerning BTC-addresses.

when i generate a new address e.g. with multiunit HD.
- my wallets knows all the addresses that have been generated yet?
- are theses addresses saved in the blockchain?
- as far as i know the address is saved in the blockchain when it was used. you can generate an address offline, right?
- if two persons generate the same address offline and then start to use it. what will happen?
- is it possible to guess a specific address? and when my guess is correct and this wallet is not encrypted.

thanks for answers.

I'm pretty sure you wont hit any dublicates, since the system will not allow it.
copper member
Activity: 1498
Merit: 1528
No I dont escrow anymore.
November 08, 2015, 07:54:36 AM
#2
Hi

i have some questions concerning BTC-addresses.

when i generate a new address e.g. with multiunit HD.

Multibit HD?

- my wallets knows all the addresses that have been generated yet?

No.

- are theses addresses saved in the blockchain?

No.

- as far as i know the address is saved in the blockchain when it was used. you can generate an address offline, right?

Yes, used addresses are stored in the blockchain (to some extend) and yes you can generate an address offline. In fact thats the normal way to do it.

- if two persons generate the same address offline and then start to use it. what will happen?

If two persons generated the same address they share the funds. Each of them can spend everything.

- is it possible to guess a specific address? and when my guess is correct and this wallet is not encrypted.

thanks for answers.

Yes, is possible to "guess" a private key to an address and be able to spend someone elses funds. But its in the realm humans usually call impossible. Its the same realm where all the air molecules collect into a corner of your room and you die.

I think you assume somehow that its checked whether or not an address was already generated. Thats not the case. There are so many possible private keys (2256) for so many possible different addresses (2160) that I can sit at home generating a 36 million private keys and addresses per second and still cant find one that has funds on them. Everyone on earth could do this and the chances are still so small you are more likely to hit the lotto jackpot several weeks in a row.
legendary
Activity: 1498
Merit: 1117
November 08, 2015, 07:47:23 AM
#1
Hi

i have some questions concerning BTC-addresses.

when i generate a new address e.g. with multiunit HD.
- my wallets knows all the addresses that have been generated yet?
- are theses addresses saved in the blockchain?
- as far as i know the address is saved in the blockchain when it was used. you can generate an address offline, right?
- if two persons generate the same address offline and then start to use it. what will happen?
- is it possible to guess a specific address? and when my guess is correct and this wallet is not encrypted.

thanks for answers.
Pages:
Jump to: