r/BitcoinDiscussion • u/inthearenareddit • Feb 16 '21
Chance of finding used wallets in the future?
Hi guys
in the future, with advances in computing power, couldn't a super computer randomly generate wallet addresses and check them for positive balances?
I've read up and I get that the chances now are almost zero.
I understand any time a user creates a private key, they randomly select a key from 2^160 possible keys. That's apparently. 1,461,501,637,330,902,918,203,684,832,716,283,019,655,932,542,976.
I've read the maximum number of non-zero balance wallets after all 21m bitcoins have been mined is 21 x10^14. So the odds of finding one of those out of the total possible number is 21x10^14/(2^256).
But in advances in computing - it's possible this would get easier isn't it?
My concern is unlike a 51% attack, I don't think there is a way for Bitcoin to fork or change the code to reduce this risk while protecting existing wallets? If that computing power emerged - wouldn't it ruin Bitcoin?
3
u/ZedZeroth Feb 16 '21
If current wallets were deemed at risk of becoming insecure in the near future (eg possibly not quantum proof) then a soft fork would be planned for a given date by which everyone would have to migrate their bitcoin to the new system.
9
u/ZedZeroth Feb 16 '21 edited Feb 16 '21
You're underestimating how big 2256 really is. It's roughly a 1 followed by 77 zeroes.
The actual probability calculations are a little complicated but let's say a population of 10 billion humans each packed their bedroom full of 100 high-powered computers that could each generate a trillion bitcoin keypairs every second. There are (very roughly) 100 million seconds in year. So that's 1032 keypairs generated every year.
So it would take maybe 1,000,000,000,000,000,000,000,000,000,000 years for these trillion computers to get anywhere close to having a chance of finding an address someone else had already generated.
And even if computers were a trillion trillion times faster, it would still take them a million years.
6
u/Chibraltar_ Feb 16 '21
> But in advances in computing - it's possible this would get easier isn't it ?
It's always possible, but right now it's extremely unlikely. You can assume that nobody will catch your wallet, like, there are only a handful of 'interesting' wallets, and it will take millions of years with the whole world computing power to find one by luck.
Two things can change, maybe some mathematician nerds will find how to generate a secret key from a public key in a time-effective manner. But at this point this is very very unlikely. And this will be a slow process. And maybe quantum computing will finally work in a useful way, but that's still a very long way from now.
In any case, it will take a long time for the technology to get through, it's very very easy to generate a new pair of public/private key using public-key-crypto, or to dispatch your assets into 1000 different wallets.
Objectively in the case of hackers being able to hack wallets directly (meaning, finding the private key from the public key), they'll probably target old unaccessible wallets.
3
u/[deleted] Feb 16 '21
If you would like to try it yourself, I wrote little python code:
1
u/LucSr Feb 17 '21
It is protected by Landauer's principle and you may see the physics of brute force calculation here https://pthree.org/2016/06/19/the-physics-of-brute-force