Bitcoin Forum

Other => Beginners & Help => Topic started by: Bitdonator on June 26, 2015, 10:36:10 AM



Title: Creating same priv. key two times
Post by: Bitdonator on June 26, 2015, 10:36:10 AM
After I made a paper wallet for long-term saving,
I start thinking about posibility that somone can create same priv. key
in their wallet in the future.

I know that posibility for this is very small, but it exist.
If someone want to create billions and billions private keys,
he can generate someone address with positive balance.

What you people think about that? This can become a big problem
for Bitcoin in the future... no?

I am a little scared  ???



Title: Re: Creating same priv. key two times
Post by: Amph on June 26, 2015, 10:39:59 AM
it was already said multiple times that collision probability is so slim that it is more feasible for the universe to explode right now instead

anyway by splitting your balance among several addresses, you can prevent that you lose a big portion of it in the unlikely event that an unimaginable collision will come out...


Title: Re: Creating same priv. key two times
Post by: Hexcoin on June 26, 2015, 10:41:15 AM
After I made a paper wallet for long-term saving,
I start thinking about posibility that somone can create same priv. key
in their wallet in the future.

I know that posibility for this is very small, but it exist.
If someone want to create billions and billions private keys,
he can generate someone address with positive balance.

What you people think about that? This can become a big problem
for Bitcoin in the future... no?

I am a little scared  ???



im thinking of that too, in the future it is possible to generate private keys for used address but when i knew the total possible address im thinking im could be dead if that thing happens. i've read somewhere in this forum than all possible address is greater than the number of dust in the world


Title: Re: Creating same priv. key two times
Post by: OnkelPaul on June 26, 2015, 10:45:28 AM
So you bought this account just recently?
No way you could have been a bitcointalk member for 2 years without ever reading this frequently (asked/answered) question.

The risk is non-zero, but small enough that you don't need to bother (unless you're using software with a broken random number generator). If you bother about duplicate private keys, you should bother more about the possibility of being eaten alive by an ice bear or drowning in a soup bowl - both events are much more likely.

Onkel Paul


Title: Re: Creating same priv. key two times
Post by: Muhammed Zakir on June 26, 2015, 10:48:37 AM
Given your example of 1 billion users at 10 addresses each:

There are 2^160 or about 1,460,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 possible addresses
In your scenario, 1,000,000,000 people are using 10 addresses each for a total of 10,000,000,000 possible addresses
10,000,000,000 / 2^160 should yield the probability of a collision occurring
10,000,000,000 / 2^160 = 0.00000000000000000000000000000000000000684

So the chances of a collision occurring in your scenario are approximately 0.000000000000000000000000000000000000684%

See why we don't consider collisions an issue?

The probability of a collision is found by a standard formula: p = 1 - k! / Nk-1(N-k)!, where k is the number of hashes generated (100x1010x103) and N is the number of possible hashes (2160).

This is a difficult number to calculate, but there is a good approximation: p = 1 - e-k(k-1)/2N

But even that value is difficult to compute because of the precision needed. Here is another approximation p = k2/2N.

So the answer is that the probability of at least one collision is approximately 7x10-19 or 0.00000000000000007%


See: http://preshing.com/20110504/hash-collision-probabilities (http://preshing.com/20110504/hash-collision-probabilities)
Ok, new data, will recalc everything:

  • probability of getting struck by lightning in any given year: 1/280000.
  • probability of taking a shit at any given point in time: 1/(60*24) = 1/1440 (assuming you take a crap every day and the actual process takes 1 minute)
  • probability of getting struck by lightning while taking a crap in any given year: 1/(280000*1440) = 1/1.47E11 = 2.48E-9
  • probability of taking a crap while being in a situation where being struck by lightning can actually occur = 1/1440 = 0.25 = 1.74E-4
  • probability of finding a collision: 1E-65
  • getting hit by lightning while taking a crap for how many years in a row is equally probable as finding a collision: log(1E-65) / log(1.74E-4) = 17.3

is my math roughly correct now?

If so, I can say: "Finding a collision is about as likely as being struck by lightning while taking a crap every year for 17 years in a row".

A graphical explanation of bitcoin security https://i.imgur.com/VjtG3.jpg

https://i.imgur.com/VjtG3.jpg (https://i.imgur.com/VjtG3.jpg)

-snip-
What you people think about that? This can become a big problem
for Bitcoin in the future... no?

I am a little scared  ???

There is nothing to be scared of. Lucky guy get others' money. Isn't it cool? ;)


Title: Re: Creating same priv. key two times
Post by: ClamCoin on June 26, 2015, 10:52:30 AM
The chance is extremely low, you better worry how to keep your paper wallet safe & secure.
If you worry about it, split your bitcoin to multiple addresses or using multi-signature address
So if two people have the same private key, they have the same wallet??


Title: Re: Creating same priv. key two times
Post by: Bitdonator on June 26, 2015, 11:04:27 AM
Someone already create www.directory.io
but I think this site is only prank

Its good that guy who make this site didnt
implement address search option


Title: Re: Creating same priv. key two times
Post by: Bitdonator on June 26, 2015, 11:06:27 AM
So you bought this account just recently?
No way you could have been a bitcointalk member for 2 years without ever reading this frequently (asked/answered) question.

The risk is non-zero, but small enough that you don't need to bother (unless you're using software with a broken random number generator). If you bother about duplicate private keys, you should bother more about the possibility of being eaten alive by an ice bear or drowning in a soup bowl - both events are much more likely.

Onkel Paul

No, its my account. I know about bitcoin for 3 years....
but never read / think before about this possible problem.


Title: Re: Creating same priv. key two times
Post by: ClamCoin on June 26, 2015, 11:07:55 AM
Someone already create www.directory.io
but I think this site is only prank

Its good that guy who make this site didnt
implement address search option
So is it his website real or just fake?
Do we have to worry about is?


Title: Re: Creating same priv. key two times
Post by: Bitdonator on June 26, 2015, 11:12:20 AM
Given your example of 1 billion users at 10 addresses each:

There are 2^160 or about 1,460,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 possible addresses
In your scenario, 1,000,000,000 people are using 10 addresses each for a total of 10,000,000,000 possible addresses
10,000,000,000 / 2^160 should yield the probability of a collision occurring
10,000,000,000 / 2^160 = 0.00000000000000000000000000000000000000684

So the chances of a collision occurring in your scenario are approximately 0.000000000000000000000000000000000000684%

See why we don't consider collisions an issue?

The probability of a collision is found by a standard formula: p = 1 - k! / Nk-1(N-k)!, where k is the number of hashes generated (100x1010x103) and N is the number of possible hashes (2160).

This is a difficult number to calculate, but there is a good approximation: p = 1 - e-k(k-1)/2N

But even that value is difficult to compute because of the precision needed. Here is another approximation p = k2/2N.

So the answer is that the probability of at least one collision is approximately 7x10-19 or 0.00000000000000007%


See: http://preshing.com/20110504/hash-collision-probabilities (http://preshing.com/20110504/hash-collision-probabilities)
Ok, new data, will recalc everything:

  • probability of getting struck by lightning in any given year: 1/280000.
  • probability of taking a shit at any given point in time: 1/(60*24) = 1/1440 (assuming you take a crap every day and the actual process takes 1 minute)
  • probability of getting struck by lightning while taking a crap in any given year: 1/(280000*1440) = 1/1.47E11 = 2.48E-9
  • probability of taking a crap while being in a situation where being struck by lightning can actually occur = 1/1440 = 0.25 = 1.74E-4
  • probability of finding a collision: 1E-65
  • getting hit by lightning while taking a crap for how many years in a row is equally probable as finding a collision: log(1E-65) / log(1.74E-4) = 17.3

is my math roughly correct now?

If so, I can say: "Finding a collision is about as likely as being struck by lightning while taking a crap every year for 17 years in a row".

A graphical explanation of bitcoin security https://i.imgur.com/VjtG3.jpg

https://i.imgur.com/VjtG3.jpg (https://i.imgur.com/VjtG3.jpg)

-snip-
What you people think about that? This can become a big problem
for Bitcoin in the future... no?

I am a little scared  ???

There is nothing to be scared of. Lucky guy get others' money. Isn't it cool? ;)


Muhammed thank you for all this info =)


Title: Re: Creating same priv. key two times
Post by: Bitdonator on June 26, 2015, 11:13:56 AM
Someone already create www.directory.io
but I think this site is only prank

Its good that guy who make this site didnt
implement address search option
So is it his website real or just fake?
Do we have to worry about is?

Yes, this site is real.
Do we have to worry?

maybe yes, maybe no  :D


Title: Re: Creating same priv. key two times
Post by: ClamCoin on June 26, 2015, 11:20:55 AM
Someone already create www.directory.io
but I think this site is only prank

Its good that guy who make this site didnt
implement address search option
So is it his website real or just fake?
Do we have to worry about is?

Yes, this site is real.
Do we have to worry?

maybe yes, maybe no  :D
But with a private key you can acces the wallet or not?


Title: Re: Creating same priv. key two times
Post by: Bitdonator on June 26, 2015, 11:24:04 AM
Someone already create www.directory.io
but I think this site is only prank

Its good that guy who make this site didnt
implement address search option
So is it his website real or just fake?
Do we have to worry about is?

Yes, this site is real.
Do we have to worry?

maybe yes, maybe no  :D
But with a private key you can acces the wallet or not?

You have acces only to ballance in that address, not all bitcoins
from addresses placed in same wallet


Title: Re: Creating same priv. key two times
Post by: medUSA on June 26, 2015, 11:50:09 AM
So you bought this account just recently?
No way you could have been a bitcointalk member for 2 years without ever reading this frequently (asked/answered) question.

I have been on the forum a long time, have seen this brought up frequently. I KNOW the standard answer is "extremely unlikely". It doesn't mean  I am convinced by this standard answer. "Extremely unlikely" doesn't bring much sense of safety to be honest.

I understand why OP is suddenly worried after 2 years of using bitcoin. Because 2 years is about the time when he accumulates enough bitcoin to be worried about loosing it.

Someone already create www.directory.io
but I think this site is only prank
So is it his website real or just fake?
Do we have to worry about is?

It's fake. I have read from somewhere that the site only calculates the address from keys when someone click on the link.


Title: Re: Creating same priv. key two times
Post by: OnkelPaul on June 26, 2015, 01:00:19 PM
So you bought this account just recently?
...
Onkel Paul

No, its my account. I know about bitcoin for 3 years....
but never read / think before about this possible problem.

I was basically kidding you :-)
(although a bought account seemed like a remote possibility, too)

The info posted by Muhammed Zakir is pretty extensive and should answer all the concerns around "possibilities".
One thing that must be understood about low probabilities is that astronomically low probabilities (for example, for private key collisions) are for all practical purposes equal to "can't happen", but mathematically they are still not zero. This often confuses people who never deal with really large numbers.

Onkel Paul


Title: Re: Creating same priv. key two times
Post by: shorena on June 26, 2015, 01:06:44 PM
Someone already create www.directory.io
but I think this site is only prank

Its good that guy who make this site didnt
implement address search option
So is it his website real or just fake?
Do we have to worry about is?

Its real, but you dont have to worry about it. They dont have a database with all keys (there is not enough storage space on the planet for that), they just generate them on the fly.

The chance is extremely low, you better worry how to keep your paper wallet safe & secure.
If you worry about it, split your bitcoin to multiple addresses or using multi-signature address
So if two people have the same private key, they have the same wallet??

No, wallet is the software that handles the private keys for you.


Title: Re: Creating same priv. key two times
Post by: ClamCoin on June 26, 2015, 01:07:54 PM
Someone already create www.directory.io
but I think this site is only prank

Its good that guy who make this site didnt
implement address search option
So is it his website real or just fake?
Do we have to worry about is?

Its real, but you dont have to worry about it. They dont have a database with all keys (there is not enough storage space on the planet for that), they just generate them on the fly.

The chance is extremely low, you better worry how to keep your paper wallet safe & secure.
If you worry about it, split your bitcoin to multiple addresses or using multi-signature address
So if two people have the same private key, they have the same wallet??

No, wallet is the software that handles the private keys for you.
So the website is useless?

Or for what do they use private keys than?


Title: Re: Creating same priv. key two times
Post by: shorena on June 26, 2015, 01:34:46 PM
Someone already create www.directory.io
but I think this site is only prank

Its good that guy who make this site didnt
implement address search option
So is it his website real or just fake?
Do we have to worry about is?

Its real, but you dont have to worry about it. They dont have a database with all keys (there is not enough storage space on the planet for that), they just generate them on the fly.

The chance is extremely low, you better worry how to keep your paper wallet safe & secure.
If you worry about it, split your bitcoin to multiple addresses or using multi-signature address
So if two people have the same private key, they have the same wallet??

No, wallet is the software that handles the private keys for you.
So the website is useless?

Well you can use it to generate private keys if you want. Its also very informative with the right information and you can test yourself how likely it is to find a used private key.

Or for what do they use private keys than?

They dont store any private keys, thus they cant use them. Thats the "fake" part others are talking about. You go to a specific page e.g. 1 and have there listed the private keys from #0 to #19 because they show 20 (the actual number is probably different) keys per page. If you pick the 3rd key from the top of page 42 you have the private key that is representing the number 20*42+3 = 843. Private keys are just that, numbers. Your chance to find a used private key while browsing that page is very low. The keys on the first few pages are the exception because some people thought it was a smart idea to use the private key #1 or #8 or #13 or #17 or #42 or #666 or any other number humans tend to apply higher meaning to.


Title: Re: Creating same priv. key two times
Post by: Bitdonator on June 27, 2015, 08:04:00 AM
This website also generate and publish private keys.  www.coinfind.cf
New archive with 100,000 priv. keys are published every day.

But seems like this is for good reason, creator of that website
drop some BTC to 5 addresses for others to find.

 


Title: Re: Creating same priv. key two times
Post by: pooya87 on June 27, 2015, 08:31:32 AM
Someone already create www.directory.io
but I think this site is only prank

Its good that guy who make this site didnt
implement address search option
This website also generate and publish private keys.  www.coinfind.cf
New archive with 100,000 priv. keys are published every day.

But seems like this is for good reason, creator of that website
drop some BTC to 5 addresses for others to find.

 
directory.io is an old prank.
it doesn't actually contain all of the private keys despite the fact that it might seems like it.
it creates private keys on the spot as you brows through the pages.

go to https://brainwallet.org/ and you can do this too, put 0000000000000000000000000000000000000000000000000000000000000001 in the "Secret Exponent" section and add +1 every time for bijillion times and you have all the private keys too.

p.s. stop visiting shady websites, you are going to be infected by malware or something.


Title: Re: Creating same priv. key two times
Post by: el kaka22 on June 27, 2015, 09:23:38 AM
The number of private keys in the universe is very big, and I've done the following calculation:
My computer have a hashrate of 4 MH/s, and it generate 650K private keys per second on vanitygen, so the estimation of private keys that can be generated by ALL the current hashing power in the world (let them be 400 PH/s for easy calculation), then the WHOLE world generate 6.5*10^16 private keys per second, compared to there are 2^160 (about 1.5*10^48) private keys that would ever exist and the 10^10 keys that may present if 10^9 people using 10 keys, then the whole world needs 4*10^22 seconds, or 1.3*10^15 years to generate a private key that someone owns, not to mention they are empty or not. So generating a duplicate private key is almost impossible.


Title: Re: Creating same priv. key two times
Post by: Muhammed Zakir on June 27, 2015, 09:44:43 AM
The number of private keys in the universe is very big, and I've done the following calculation:
My computer have a hashrate of 4 MH/s, and it generate 650K private keys per second on vanitygen, so the estimation of private keys that can be generated by ALL the current hashing power in the world (let them be 400 PH/s for easy calculation), then the WHOLE world generate 6.5*10^16 private keys per second, compared to there are 2^160 (about 1.5*10^48) private keys that would ever exist and the 10^10 keys that may present if 10^9 people using 10 keys, then the whole world needs 4*10^22 seconds, or 1.3*10^15 years to generate a private key that someone owns, not to mention they are empty or not. So generating a duplicate private key is almost impossible.

https://i.imgur.com/VjtG3.jpg (https://i.imgur.com/VjtG3.jpg)


Title: Re: Creating same priv. key two times
Post by: Rmcdermott927 on June 27, 2015, 05:06:23 PM
After I made a paper wallet for long-term saving,
I start thinking about posibility that somone can create same priv. key
in their wallet in the future.

I know that posibility for this is very small, but it exist.
If someone want to create billions and billions private keys,
he can generate someone address with positive balance.

What you people think about that? This can become a big problem
for Bitcoin in the future... no?

I am a little scared  ???



A collision with any of the SHA algorithms has never been recorded.   There are more possible private keys than there are grains of sand on every beach in the world.   Don't be scared.   Just keep you keys safe.   The only theoretical issue is when quantum computing becomes a reality.  But this is many, many years in the future.


Title: Re: Creating same priv. key two times
Post by: odolvlobo on June 27, 2015, 07:12:23 PM
There are more private keys than molecules of water on the Earth. If I picked a single molecule of water somewhere -- maybe in an ocean, or in a lake, or in the air, or in a puddle, or in my toilet -- you are more likely to guess which molecule of water I picked than to guess one of my private keys.


Title: Re: Creating same priv. key two times
Post by: Deathwing on June 27, 2015, 07:13:47 PM
I don't know if it's a coincidence or not but someone from the Turkish community was mining "private keys" yeah. "mining" and he managed to find 50 BTC, a address that no one used for the last 3 years.


Title: Re: Creating same priv. key two times
Post by: Amph on June 27, 2015, 07:18:30 PM
There are more private keys than molecules of water on the Earth. If I picked a single molecule of water somewhere -- maybe in an ocean, or in a lake, or in the air, or in a puddle, or in my toilet -- you are more likely to guess which molecule of water I picked than to guess one of my private keys.

still very far from being impossible  ;D

for example 1B^1B is bigger than the amount of the number of tries required to perform a successful collision

B = billions


Title: Re: Creating same priv. key two times
Post by: Rmcdermott927 on June 27, 2015, 07:18:53 PM
I don't know if it's a coincidence or not but someone from the Turkish community was mining "private keys" yeah. "mining" and he managed to find 50 BTC, a address that no one used for the last 3 years.

It was likely not a collision.  It is possible that it was generated by some sort of brainwallet or other non-random method of generating keys.  Compute time would be better spent running combinations of words and phrases through the brain wallet format than trying to find collisions.


Title: Re: Creating same priv. key two times
Post by: shorena on June 27, 2015, 07:26:25 PM
I don't know if it's a coincidence or not but someone from the Turkish community was mining "private keys" yeah. "mining" and he managed to find 50 BTC, a address that no one used for the last 3 years.

It was likely not a collision.  It is possible that it was generated by some sort of brainwallet or other non-random method of generating keys.  Compute time would be better spent running combinations of words and phrases through the brain wallet format than trying to find collisions.

Yep, IIRC there was someone that was generating a subset of all private keys. 32-bit worth IIRC and they also found several balances. Its not a proper collision if you only use a subset of the whole space. Thats like searching only a certain toilet (to stay with the water example) which is commonly used by badly written software as well.


Title: Re: Creating same priv. key two times
Post by: RealBitcoin on June 28, 2015, 09:46:27 AM
After I made a paper wallet for long-term saving,
I start thinking about posibility that somone can create same priv. key
in their wallet in the future.

I know that posibility for this is very small, but it exist.
If someone want to create billions and billions private keys,
he can generate someone address with positive balance.

What you people think about that? This can become a big problem
for Bitcoin in the future... no?

I am a little scared  ???



Its very small, but i cant describe how small it is, higher odds for you to being hit by a bus then to that happen.

Its also more likely to be hit by a meteorite than for that to happen, so better buy insurance agains meteorite hits than agains duplicate priv key.


Title: Re: Creating same priv. key two times
Post by: Bitdonator on July 01, 2015, 06:57:27 AM
After I made a paper wallet for long-term saving,
I start thinking about posibility that somone can create same priv. key
in their wallet in the future.

I know that posibility for this is very small, but it exist.
If someone want to create billions and billions private keys,
he can generate someone address with positive balance.

What you people think about that? This can become a big problem
for Bitcoin in the future... no?

I am a little scared  ???



Its very small, but i cant describe how small it is, higher odds for you to being hit by a bus then to that happen.

Its also more likely to be hit by a meteorite than for that to happen, so better buy insurance agains meteorite hits than agains duplicate priv key.

I already hited by bus when I was young  :D  LoL
Nothing serious, just my broken bike


Title: Re: Creating same priv. key two times
Post by: BitcoinNewbie15 on July 01, 2015, 04:05:41 PM
I have heard that the odds of a private key collision taking place are infinitesimally small. It is so incredibly unlikely to happen, that it is almost guaranteed nothing to worry about.


Title: Re: Creating same priv. key two times
Post by: ClamCoin on July 02, 2015, 09:24:53 AM
This website also generate and publish private keys.  www.coinfind.cf
New archive with 100,000 priv. keys are published every day.

But seems like this is for good reason, creator of that website
drop some BTC to 5 addresses for others to find.

 
So when peoples get the Same private key, the one got some free bitcoin. But if I am right that will need so much luck to get the same private key,that it will take most likely many years. And what is the good reason u are saying?


Thanks,

ClamCoin :)





Title: Re: Creating same priv. key two times
Post by: Hexcoin on July 02, 2015, 09:31:08 AM
This website also generate and publish private keys.  www.coinfind.cf
New archive with 100,000 priv. keys are published every day.

But seems like this is for good reason, creator of that website
drop some BTC to 5 addresses for others to find.

 
So when peoples get the Same private key, the one got some free bitcoin. But if I am right that will need so much luck to get the same private key,that it will take most likely many years. And what is the good reason u are saying?


Thanks,

ClamCoin :)


definitely free coins for the other owner. but the chance is so small like it is 99.999999999999999% impossible. maybe in our entire lives it wouldn't happen


Title: Re: Creating same priv. key two times
Post by: Muhammed Zakir on July 02, 2015, 03:45:57 PM
This website also generate and publish private keys.  www.coinfind.cf
New archive with 100,000 priv. keys are published every day.
But seems like this is for good reason, creator of that website
drop some BTC to 5 addresses for others to find.
So when peoples get the Same private key, the one got some free bitcoin. But if I am right that will need so much luck to get the same private key,that it will take most likely many years. And what is the good reason u are saying?
Thanks,
ClamCoin :)

definitely free coins for the other owner. but the chance is so small like it is 99.999999999999999% impossible. maybe in our entire lives it wouldn't happen

You need many more 9s than that.

-snip-
The probability of a collision is found by a standard formula: p = 1 - k! / Nk-1(N-k)!, where k is the number of hashes generated (100x1010x103) and N is the number of possible hashes (2160).

This is a difficult number to calculate, but there is a good approximation: p = 1 - e-k(k-1)/2N

But even that value is difficult to compute because of the precision needed. Here is another approximation p = k2/2N.

So the answer is that the probability of at least one collision is approximately 7x10-19 or 0.00000000000000007%


See: http://preshing.com/20110504/hash-collision-probabilities (http://preshing.com/20110504/hash-collision-probabilities)
-snip-


Title: Re: Creating same priv. key two times
Post by: Reynaldo on July 02, 2015, 04:21:24 PM
This has been talked different times on this forums, it's not possible, Muhammed posted all the needed information. Please next time use search function it really helps to keep post quality up and you can learn many things from old posts :)


Title: Re: Creating same priv. key two times
Post by: Bitdonator on July 03, 2015, 11:45:25 AM
sorry, but I really tried to find some topics about that on the forum.

maybe I not search too much...
anyway, discusing about this problem
is never enough


Title: Re: Creating same priv. key two times
Post by: el kaka22 on July 03, 2015, 11:50:44 AM
Oh, I suddenly realized that, there are 2^256 private keys available in the universe, while there is only 2^160 bitcoin addresses available. That is, there are about 2^96 (about 8*10^30) private keys pointing to a same bitcoin address?! Is that true? Then will them collide?


Title: Re: Creating same priv. key two times
Post by: Muhammed Zakir on July 03, 2015, 03:49:01 PM
Another interesting post:

there is no risk of collision?

Correct.

I mean 2 person can generate the same btc address

And all the molecules of air can collect in the corner of the room causing everyone in the room to suffocate, but the probability is so low that we consider it impossible.

Even if risks are low, what will happen in this case?

If the users are using faulty software that does not properly generate a random number (so that multiple users end up generating the same number), then all users that generate the same number will have the ability to spend the bitcoins that are sent to the address.  Whoever spends an output and gets confirmed first gets to be the "real" transaction for that output, and any transaction created by any of the others to spend the same output are rejected.



Oh, I suddenly realized that, there are 2^256 private keys available in the universe, while there is only 2^160 bitcoin addresses available. That is, there are about 2^96 (about 8*10^30) private keys pointing to a same bitcoin address?! Is that true? Then will them collide?

See

So there are 2^160 public keys but only 2^96 private keys? Ho does that add up?
Are there private keys than unlock more than one public key?
There are just under 2^256 private keys, just under 2^256 public keys, and 2^160 addresses. There are some addresses that have more than one corresponding public key and thus more than one corresponding private key.

The confusion comes in when two distinct concepts have the same name.

"private key" can mean either the raw 256 bits used to calculate the signature, or it can mean the encoded format that bitcoin stores.

Public key can also mean either the (x,y) point used to verify signatures, or it can mean the encoded version that bitcoin uses.

In the raw sense, both private keys are the same, and both public keys refer to the same (x,y) point.  In the encoded sense, the compressed private key encoding implies the compressed public key encoding, and ditto for the uncompressed encodings.  The addresses are hashed from the encoded forms, so there are two different addresses that technically refer to the exact same keypair.

Since bitcoin deals exclusively with encoded versions, the two formats are totally distinct different things.  If you generate your own raw private key, you can create both encodings and calculate both addresses.  Import the two encodings into different wallets, and neither one will have any idea about transactions sent to the other.  Even though they could calculate signatures for both, they don't know to look for them.

Difference between public keys and addresses:

Your public key is your BTC address. You can go to receive then copy an address that you want to receive at/use.

This is not true.

A public key is a 256 bit number if compressed (or a 256 bit x coordinate and 256 bit y coordinate of a point if not compressed) calculated from the private key using ECDSA with the Secp256k1 curve.

A BTC address is a hash of a public key with a version number prepended, a checksum appended, and then Base58Check encoded.


Title: Re: Creating same priv. key two times
Post by: Rmcdermott927 on July 03, 2015, 04:51:52 PM
After I made a paper wallet for long-term saving,
I start thinking about posibility that somone can create same priv. key
in their wallet in the future.

I know that posibility for this is very small, but it exist.
If someone want to create billions and billions private keys,
he can generate someone address with positive balance.

What you people think about that? This can become a big problem
for Bitcoin in the future... no?

I am a little scared  ???



The real question is:  How was this private key created?   If it was created using a brainwallet or something that is non-random with little entropy then that is essentially your only risk.   Remember, there are more private keys than there are molecules of water in all the oceans in the world.    There has never been a collision recorded in any of the SHA algorithms. 


Title: Re: Creating same priv. key two times
Post by: tyz on July 03, 2015, 06:43:16 PM
This issue was discussed several times here. For sure, it is possible to create same keys but it is very very very...very unlikely. Even with quantum computers it would last decades.
To make you a little bit more afraid, just visit www.directory.io for example  :D


Title: Re: Creating same priv. key two times
Post by: Bitdonator on July 10, 2015, 07:30:40 AM
This issue was discussed several times here. For sure, it is possible to create same keys but it is very very very...very unlikely. Even with quantum computers it would last decades.
To make you a little bit more afraid, just visit www.directory.io for example  :D

Yea, I see that site before.
Its only a prank :D


Title: Re: Creating same priv. key two times
Post by: tyz on July 10, 2015, 06:34:22 PM
Well, I would not say it is a prank. If you have the time you can click yourself through all 904625697166532776746648320380374280100293470930272690489102837043110636675 pages and you will find every private key to a bitcoin address you want  :D

This issue was discussed several times here. For sure, it is possible to create same keys but it is very very very...very unlikely. Even with quantum computers it would last decades.
To make you a little bit more afraid, just visit www.directory.io for example  :D

Yea, I see that site before.
Its only a prank :D


Title: Re: Creating same priv. key two times
Post by: RealBitcoin on July 22, 2015, 05:24:09 AM
Well, I would not say it is a prank. If you have the time you can click yourself through all 904625697166532776746648320380374280100293470930272690489102837043110636675 pages and you will find every private key to a bitcoin address you want  :D

This issue was discussed several times here. For sure, it is possible to create same keys but it is very very very...very unlikely. Even with quantum computers it would last decades.
To make you a little bit more afraid, just visit www.directory.io for example  :D

Yea, I see that site before.
Its only a prank :D

I`ve found yours on page 2398427397429347293847928342483, you are very unlucky today :D


Title: Re: Creating same priv. key two times
Post by: ranlo on July 22, 2015, 09:34:53 AM
I think the harder part -- aside from just generating addresses -- is that you'd also have to scan the blockchain with each generation to see whether or not an address has a balance. This in itself would increase the time/required power by orders of magnitude.