Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: lucasjkr on June 25, 2013, 05:15:12 PM



Title: Vanity Keygen
Post by: lucasjkr on June 25, 2013, 05:15:12 PM
So, I've been playing around with Vanity keygen, (I found lots of keys that start with "1Lucas..."  :), which made me wonder, if you enter in someone's public key as the target to search for, might you not eventually stumble upon their private key?

I know the odds are against it such a thing ever happening, but lots of things happen that aren't "supposed" to... The financial crisis wasn't supposed to happen from a mathematical perspective, I understand... and even satoshidice's max payout pool has been won far more times than should have been, based on probabilities (again, per my understanding.)

But just for perspective, if the entire hashing power of the network was instead devoted to searching out one private key from a public key, how long would such as search take? Like at a hashrate of 1 TH, how long would it take to search the entire keyspace? Because, even if a TH seems like a lot now, between Moores law and huge numbers of potential new users/miners, the hashing power online now is nothing compared to what it one day could be..


Title: Re: Vanity Keygen
Post by: cp1 on June 25, 2013, 05:18:02 PM
Type in a whole private key (or as many letters as it will let you) and scale by network hash rate then scale by # of letters you weren't able to enter.  It's like 10^30 years to find one.

The idea is that it's more profitable to mine bitcoins than to try to brute force a private key.


Title: Re: Vanity Keygen
Post by: rme on June 25, 2013, 05:24:22 PM
Its more possible that you win 5 times the lottery and instantly a lightning kills you.
(Mathematically speaking).


Title: Re: Vanity Keygen
Post by: Arcas on June 25, 2013, 06:27:12 PM
There are as many private keys as there are atoms in the visible universe.


Title: Re: Vanity Keygen
Post by: Abdussamad on June 25, 2013, 08:12:48 PM
There are as many private keys as there are atoms in the visible universe.

Nope.

total number of private keys = 0.0012 x atoms in visible universe

i.e. 0.12%


Title: Re: Vanity Keygen
Post by: str4wm4n on June 25, 2013, 09:00:05 PM
how did you arrive at that number? I was thinking there's more keys than subatomic particles in the universe


Title: Re: Vanity Keygen
Post by: Abdussamad on June 25, 2013, 09:38:42 PM
http://www.wolframalpha.com/input/?i=2%5E256


Title: Re: Vanity Keygen
Post by: domob on June 26, 2013, 06:08:47 AM
There are as many private keys as there are atoms in the visible universe.

Nope.

total number of private keys = 0.0012 x atoms in visible universe

i.e. 0.12%

A quick calculation of mine confirms that, assuming 10^80 atoms.  Although I have to admit, I also thought there would be more private keys ... guess that must be because 256 > 80, but the bases are different.