Bitcoin Forum
May 13, 2024, 12:38:23 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Unencrypted Wallet Question  (Read 812 times)
LanYu (OP)
Jr. Member
*
Offline Offline

Activity: 54
Merit: 10


View Profile
April 12, 2013, 04:00:44 PM
 #1

If there is an address with bitcoins, where the wallet is unencrypted, would it be possible for somebody to generate that address and then lay claim to the coins at that address? If not, what mechanism prevents this?
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
April 12, 2013, 04:33:47 PM
 #2

If there is an address with bitcoins, where the wallet is unencrypted, would it be possible for somebody to generate that address and then lay claim to the coins at that address? If not, what mechanism prevents this?
Wallet encryption encrypts your whole wallet in the event that it's stolen. It is possible that a user independently generates an address that collides with yours i.e a collision and spend whatever coins the address has, but since we are talking about ~2^256 possible combinations, it's extremely unlikely, so much that you have a batter chance of winning the lottery a dozen of times.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
LanYu (OP)
Jr. Member
*
Offline Offline

Activity: 54
Merit: 10


View Profile
April 12, 2013, 04:45:03 PM
 #3

There are thousands of addresses that contain bitcoins. Isn't it possible that by generating a large amount of addresses, you will eventually stumble on one that already contains coins?

Maybe I am misunderstanding...
BookLover
Hero Member
*****
Offline Offline

Activity: 533
Merit: 500


^Bitcoin Library of Congress.


View Profile
April 12, 2013, 05:30:29 PM
Last edit: April 14, 2013, 01:16:31 PM by BookLover
 #4

Yes it is possible, but 2^256 is about 1.157920892 * 10^77 or a 1 in 115,792,089,200,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 chance of it happening. Shocked
It is quite a bit more likely for you and all your family to die by meteorite.  So moral of the story, buy meteorite insurance before worrying about address collisions. Wink

Probability of death by meteorite found at :http://blogs.discovermagazine.com/badastronomy/2008/10/13/death-by-meteorite/#.UWhFucjLcTs it is 1 in 700,000 according to the site.

P.S.  Encrypting your wallet does nothing to prevent address collisions.

LanYu (OP)
Jr. Member
*
Offline Offline

Activity: 54
Merit: 10


View Profile
April 12, 2013, 05:52:55 PM
 #5

Loud and clear...

I guess sometimes I underestimate the key size
ar9
Sr. Member
****
Offline Offline

Activity: 352
Merit: 250



View Profile
April 12, 2013, 05:53:43 PM
 #6

Yes it is possible, but 2^256 is about1.157920892 * 10^77 or a 1 in 115,792,089,200,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 chance of it happening. Shocked
It is quite a bit more likely for you and all your family to die by meteorite.  So moral of the story, buy meteorite insurance before worrying about address collisions. Wink

Probability of death by meteorite found at :http://blogs.discovermagazine.com/badastronomy/2008/10/13/death-by-meteorite/#.UWhFucjLcTs it is 1 in 700,000 according to the site.

P.S.  Encrypting your wallet does nothing to prevent address collisions.

What if someone decided to turn on a super rig, and churn out addresses, with a script to determine if the addresses are empty or not?
Anything stopping this?
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
April 12, 2013, 06:02:14 PM
 #7

Yes it is possible, but 2^256 is about1.157920892 * 10^77 or a 1 in 115,792,089,200,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000 chance of it happening. Shocked
It is quite a bit more likely for you and all your family to die by meteorite.  So moral of the story, buy meteorite insurance before worrying about address collisions. Wink

Probability of death by meteorite found at :http://blogs.discovermagazine.com/badastronomy/2008/10/13/death-by-meteorite/#.UWhFucjLcTs it is 1 in 700,000 according to the site.

P.S.  Encrypting your wallet does nothing to prevent address collisions.

What if someone decided to turn on a super rig, and churn out addresses, with a script to determine if the addresses are empty or not?
Anything stopping this?
He would need a really really powerful supercomputer. And maybe even then it would still take millions/billions of years. Quantum computers are a different story, but not yet possible.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
LanYu (OP)
Jr. Member
*
Offline Offline

Activity: 54
Merit: 10


View Profile
April 12, 2013, 10:50:04 PM
 #8

Aye, I did the math to back it up, and.... you guys are right.

Even if every single satoshi had its own unique address, then we have only used up 8.6361686e-62 percent of the keyspace. That means that you would have to generate about 5.513909e+61 addresses to even have a good chance on stumbling on a single address. Assuming you can generate a single address in 64 * 10^-9 seconds, it would take you 6.7140444e+48 years to find a single collision.

I am guessing that even a highly parallelized algorithm wouldn't put much of a dent in that, even with a super powerful computer.
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!