Title: Is it possible to guess a privkey? Post by: Sir_lagsalot on November 24, 2015, 11:38:29 AM As the title asks, is it possible to guess a privkey/generate an existing wallet's privkey? I'm quite interested about how mining for a bitcoin address works. Is it kind of the same thing as mining a block, guessing combinations of numbers and letters (the privkey) to unlock the code (wallet address), or is it some other kind of algorithm?
I've used vanity miner before, and I've tried guessing an existing address, but according do vanitygen, it takes more than a billion years on average to solve. Assuming I was lucky enough to mine the exact same address, could I get the privkey? Title: Re: Is it possible to guess a privkey? Post by: domob on November 24, 2015, 11:53:52 AM I've used vanity miner before, and I've tried guessing an existing address, but according do vanitygen, it takes more than a billion years on average to solve. Assuming I was lucky enough to mine the exact same address, could I get the privkey? Yes, in theory. Note however that you provided the actual answer yourself: The chance is so vanishingly small that it is, for all practical purposes, simply impossible. Title: Re: Is it possible to guess a privkey? Post by: DannyHamilton on November 24, 2015, 12:26:00 PM As the title asks, is it possible to guess a privkey/generate an existing wallet's privkey? That depends. If the private key that you are attempting to "guess" was generated from a non-random source (such as a passphrase or faulty random number generator) and you know something about how it was generated, then it may be possible to guess or generate the same key. I'm quite interested about how mining for a bitcoin address works. I'm not sure what you mean when you say "mining for a bitcoin address". That isn't really a commonly understood concept, so it probably works in whatever way you want to define it since you're the one using the phrase. Is it kind of the same thing as mining a block, guessing combinations of numbers and letters (the privkey) to unlock the code (wallet address), That would be known as a "brute-force" search for the private key. It is a waste of time and money to attempt such a thing. You could run a million computers for a million years and you still wouldn't randomly generate the private key for any address spcifically chosen ahead of time. or is it some other kind of algorithm? If a private key is generated in some non-random manner, and you know something about how it was generated, then you could limit the search space based on your knowledge. This would allow you to build an algorithm around what you know about how it was generated. I've used vanity miner before, and I've tried guessing an existing address, but according do vanitygen, it takes more than a billion years on average to solve. Yes. Much more than a billion years. It isn't going to happen. Assuming I was lucky enough to mine the exact same address, could I get the privkey? Yes, if you got the exact same address, then you would have one of the 7.9 X 1028 (on average) working private keys for that address. Title: Re: Is it possible to guess a privkey? Post by: Hugroll on November 24, 2015, 12:55:58 PM Assuming I was lucky enough to mine the exact same address, could I get the privkey? Yes, if you got the exact same address, then you would have one of the 7.9 X 1028 (on average) working private keys for that address. Title: Re: Is it possible to guess a privkey? Post by: shorena on November 24, 2015, 01:07:49 PM Assuming I was lucky enough to mine the exact same address, could I get the privkey? Yes, if you got the exact same address, then you would have one of the 7.9 X 1028 (on average) working private keys for that address. That is correct. There are 2256 private keys with 2256 public keys. The public key is hashed with ripemd160(sha256(pubkey)). Ripemd160 is limited to 2160 possible solutions thus[1] there are 2160 possible addresses with 2256 private keys or 2256/2160 = 296 private keys per address. 296 ~7.9*1028 [1] under some minor assumptions like even distribution Title: Re: Is it possible to guess a privkey? Post by: traderbit on November 24, 2015, 06:58:36 PM Everything is possible so i think guessing a private key is possible too.
But that could be the rarest case ever because there are lots of space to guess. As shorena says the number is very huge so the probability to guess the correct private key are near zero. Title: Re: Is it possible to guess a privkey? Post by: RodeoX on November 24, 2015, 07:04:36 PM Of course, watch me. Is your private key 1EHba6Q4Jz2uvNExL497mE43ikXhwF6kNm ?
Now just keep guessing until you guess correctly. Note that you should also start training your children to guess. This will likely take billions of years. Title: Re: Is it possible to guess a privkey? Post by: BurtW on November 24, 2015, 07:12:38 PM Of course, watch me. Is your private key 1EHba6Q4Jz2uvNExL497mE43ikXhwF6kNm ? Yes, this is pedantic, but only because up thread was a bit more technical and your statement may cause some confusion:Now just keep guessing until you guess correctly. Note that you should also start training your children to guess. This will likely take billions of years. 1EHba6Q4Jz2uvNExL497mE43ikXhwF6kNm is not a private key, it is a Bitcoin address. As described above there are about 2256 - 160 = 296 public/private key pairs that will map to this specific Bitcoin address. Title: Re: Is it possible to guess a privkey? Post by: DannyHamilton on November 24, 2015, 07:20:19 PM Of course, watch me. Is your private key 1EHba6Q4Jz2uvNExL497mE43ikXhwF6kNm ? Yes, this is pedantic, but only because up thread was a bit more technical and your statement may cause some confusion:Now just keep guessing until you guess correctly. Note that you should also start training your children to guess. This will likely take billions of years. 1EHba6Q4Jz2uvNExL497mE43ikXhwF6kNm is not a private key, it is a Bitcoin address. - snip - Actually... It's not even a bitcoin address. It's just a random string of characters that starts with a 1. He might as well have said: "Is your private key 1a2b3c?" Title: Re: Is it possible to guess a privkey? Post by: Mirdude on November 24, 2015, 07:26:08 PM Would take a hell of a long time tbh!
Title: Re: Is it possible to guess a privkey? Post by: h0w8rd on November 24, 2015, 07:45:03 PM Yes you can guess a Private Key, it's just a matter of time.
if you want to guess a privet key to a specific address, then it's just a matter of more time. Title: Re: Is it possible to guess a privkey? Post by: RodeoX on November 24, 2015, 07:49:31 PM Of course, watch me. Is your private key 1EHba6Q4Jz2uvNExL497mE43ikXhwF6kNm ? Yes, this is pedantic, but only because up thread was a bit more technical and your statement may cause some confusion:Now just keep guessing until you guess correctly. Note that you should also start training your children to guess. This will likely take billions of years. 1EHba6Q4Jz2uvNExL497mE43ikXhwF6kNm is not a private key, it is a Bitcoin address. - snip - Actually... It's not even a bitcoin address. It's just a random string of characters that starts with a 1. He might as well have said: "Is your private key 1a2b3c?" LOL, No, I read right past it and just plopped down a string for joke purposes. Title: Re: Is it possible to guess a privkey? Post by: jaydipmodhwadia on November 24, 2015, 08:00:27 PM To my understandings, I don't think even IBM Watson would be able to crack a privkey.
Quite frankly, its clever the way the addresses were made. I thank Satoshi *Preach* Title: Re: Is it possible to guess a privkey? Post by: virtualx on November 24, 2015, 09:47:08 PM As the title asks, is it possible to guess a privkey/generate an existing wallet's privkey? In theory yes, but in practice the chance is so low that you can be certain it won't happen in your lifespan. This comes down to the search space being enormous. This search space is so huge its larger than finding one genome in the entire human genome. Title: Re: Is it possible to guess a privkey? Post by: h0w8rd on November 24, 2015, 10:03:04 PM anybody can guess the private key, it just takes too long to do it.
when I was explaining BTC to my girlfriend and friends, I say is impossible for anyone to crack a wallet, the time it take is longer than the universe itself, when I say "but" (there is the remote change, that's next to nothing) and they just don't feel safe there is some chance it could be hacked, and turned away from bitcoin. Title: Re: Is it possible to guess a privkey? Post by: DannyHamilton on November 24, 2015, 10:11:11 PM This search space is so huge its larger than finding one genome in the entire human genome. Yes. But that's a bit extreme. It's sort of like saying that the visible universe is larger than a water molecule. It's true, but as a comparison it really doesn't really tell you much about how big the visible universe is. There are less than 25,000 human protein-coding genes. There are approximately 7,300,000,000 humans on the planet. That's 25,000 * 7,300,000,000 = 1.8 X 1014 total human genes on the planet (including all the duplicates that children get from their living ancestors). Meanwhile there are 1.46 X 1048 different potential bitcoin addresses. That means that if you had 1 billion different bitcoin addresses for each and every human gene in existence in a living human, you still wouldn't even be close to finding a working private key for a given bitcoin address. The average human being is made up of approximately 37.2 X 1012 living cells. That means that if you cut up all the living human cells on the planet, and extracted all the genes from every cell, and had 1 billion different addresses for each and every gene from each and every cell... 37.2 X 1012 * 7.3 X 109 * 25.0 X 103 * 1 X 109 = 6.79 X 1036 You still wouldn't have even 1% of 1% of a chance of having found a working private key for a given bitcoin address. If you repeated that same process on a million planets that were all populated with 7.3 billion humans just like us, you'd have 4.96 X 1043. You still wouldn't have a 1% of 1% chance of having found a working private key for a given bitcoin address. Title: Re: Is it possible to guess a privkey? Post by: DannyHamilton on November 24, 2015, 10:14:18 PM anybody can guess the private key, No. They can't. it just takes too long to do it. Which is why they can't. when I was explaining BTC to my girlfriend and friends, I say is impossible for anyone to crack a wallet Assuming that the addresses are generated from a sufficient source of entropy, that is correct. the time it take is longer than the universe itself, Much, much longer. when I say "but" (there is the remote change, that's next to nothing) and they just don't feel safe there is some chance it could be hacked, and turned away from bitcoin. That's because you gave them bad information and mis-led them into believing the wrong thing. There is not a "remote chance". It won't happen. Title: Re: Is it possible to guess a privkey? Post by: lottoshares on November 26, 2015, 11:18:18 PM As the title asks, is it possible to guess a privkey/generate an existing wallet's privkey? That depends. If the private key that you are attempting to "guess" was generated from a non-random source (such as a passphrase or faulty random number generator) and you know something about how it was generated, then it may be possible to guess or generate the same key. Blockchain.info briefly generated private keys using a non-random source due to a programming bug. An honest programmer has a computer running which constantly scans the network for such vulnerable private keys, and transferred the coins controlled by them to his own secure address. He returned them to blockchain.info with an explanation of the programming error it had made that left them vulnerable to theft. Title: Re: Is it possible to guess a privkey? Post by: Remember remember the 5th of November on November 28, 2015, 12:08:58 PM @DannyHamilton
I am astonished by the number of times you have replied to these kinds of threads. Anyone else would've lost their mind. Title: Re: Is it possible to guess a privkey? Post by: Jeremycoin on November 29, 2015, 12:08:52 AM Yes it is, it just like crackin' a password. But it will take a long long long time to do it, because private key has so many characters in it.
Title: Re: Is it possible to guess a privkey? Post by: Syke on November 29, 2015, 02:29:21 AM Yes it is, it just like crackin' a password. But it will take a long long long time to do it, because private key has so many characters in it. The short answer is, "The earth will no longer exist by the time you guess a private key." Here's the long answer. https://i.imgur.com/fYFBsqp.jpg Title: Re: Is it possible to guess a privkey? Post by: vlom on November 29, 2015, 06:06:56 PM i once asked the same question.
one answer is missing here: nothing easier than that. this has already be done. have a look at: http://directory.io edit: read carefully ::) Title: Re: Is it possible to guess a privkey? Post by: Decoded on November 29, 2015, 08:07:04 PM Yes, it is possible but a bitcoin address of just so long it souls take you a few trillion trillion trillion years, if I remember correctly. O don't think humans have even existed for that long.... Maybe we'll be able to goes a private key when Quantum computers come out though :-/
@DannyHamilton I am astonished by the number of times you have replied to these kinds of threads. Anyone else would've lost their mind. Sorry if this is a little off topic, but how do you change your name? Title: Re: Is it possible to guess a privkey? Post by: calkob on November 30, 2015, 05:00:18 PM The sane answer is ....... "NO" :D
Title: Re: Is it possible to guess a privkey? Post by: bob123 on November 30, 2015, 09:01:54 PM Theoratically yes.. its possible..
.. but its not worth the time trying.. you probably wouldn't guess the right private key in your entire life. Title: Re: Is it possible to guess a privkey? Post by: extrabyte on November 30, 2015, 09:03:29 PM Theoratically yes.. its possible.. .. but its not worth the time trying.. you probably wouldn't guess the right private key in your entire life. In theoretically it should be but practically it is not possible not for now but even for a decade from now. Title: Re: Is it possible to guess a privkey? Post by: Was on December 02, 2015, 05:46:02 AM Quick Spin on the question to anyone who feels obliged to answer,
If I created an Altcoin, and used the same algorithm (secpk256, i think) to generate the pub/priv key pairs, if I sent coins to an existing address on the bitcoin network, for example,one of Satoshi's, would the private key be the same for that address on the altcoin blockchain? i.e. would satoshi be able to spend these coins assuming he was aware of this? thank in advance Was Title: Re: Is it possible to guess a privkey? Post by: fbueller on December 02, 2015, 05:50:16 AM Quick Spin on the question to anyone who feels obliged to answer, If I created an Altcoin, and used the same algorithm (secpk256, i think) to generate the pub/priv key pairs, if I sent coins to an existing address on the bitcoin network, for example,one of Satoshi's, would the private key be the same for that address on the altcoin blockchain? i.e. would satoshi be able to spend these coins assuming he was aware of this? thank in advance Was Yep! Title: Re: Is it possible to guess a privkey? Post by: Was on December 02, 2015, 05:52:26 AM excellent, thank you.
Title: Re: Is it possible to guess a privkey? Post by: shorena on December 02, 2015, 10:34:49 AM excellent, thank you. CLAM distribut(s|ed) its coins that way. Title: Re: Is it possible to guess a privkey? Post by: watashi-kokoto on December 02, 2015, 03:20:29 PM you can create address.
then guess it. probability is 100% key is same :D but you're not richer sad Title: Re: Is it possible to guess a privkey? Post by: watashi-kokoto on December 02, 2015, 03:22:27 PM come to my house
take my pc copy my key you guessed it :D congratulation you stole my funds chance is 100% when I sleep when awake i beat you up Title: Re: Is it possible to guess a privkey? Post by: Was on December 03, 2015, 10:37:24 AM excellent, thank you. CLAM distribut(s|ed) its coins that way. clam? Title: Re: Is it possible to guess a privkey? Post by: DannyHamilton on December 03, 2015, 12:15:40 PM - snip - clam? It's an "altcoin". As a rule I generally avoid all altcoins, so I don't know a lot about it, but you can read a thread about it here if you like: https://bitcointalk.org/index.php?topic=623147.0 Title: Re: Is it possible to guess a privkey? Post by: fbueller on December 03, 2015, 02:57:15 PM It is possible. Just don't waste your time.
Title: Re: Is it possible to guess a privkey? Post by: BurtW on December 03, 2015, 04:04:51 PM excellent, thank you. CLAM distribut(s|ed) its coins that way. clam? Title: Re: Is it possible to guess a privkey? Post by: shorena on December 03, 2015, 05:03:58 PM excellent, thank you. CLAM distribut(s|ed) its coins that way. clam? Sorry, I did not want to derail the thread with this. They also did(?) this for litecoin and dogecoin. I say did with a questionmark because there recently was a big discussion whether the dev should fork CLAM to change this behaviour. I did not follow the coin for a while though, so ... -snip- you can read a thread about it here if you like: https://bitcointalk.org/index.php?topic=623147.0 Title: Re: Is it possible to guess a privkey? Post by: tommorisonwebdesign on December 03, 2015, 07:18:50 PM Don't worry, as stated before, private keys are strongly encrypted and would take quite some time even for supercomputers to decrypt. Don't worry, your coins are safe.
Title: Re: Is it possible to guess a privkey? Post by: Sir_lagsalot on December 05, 2015, 11:32:16 AM Yes it is, it just like crackin' a password. But it will take a long long long time to do it, because private key has so many characters in it. The short answer is, "The earth will no longer exist by the time you guess a private key." Here's the long answer. https://i.imgur.com/fYFBsqp.jpg Wow, now that I think about it, that makes an awful lot of sense. But hashing is a lot more random, on average it will be impossible, but even a lemon could guess a privkey first try. Title: Re: Is it possible to guess a privkey? Post by: z0rg1nc on December 05, 2015, 08:10:24 PM I've used vanity miner before, and I've tried guessing an existing address, but according do vanitygen, it takes more than a billion years on average to solve. Assuming I was lucky enough to mine the exact same address, could I get the privkey? Yes, in theory. Note however that you provided the actual answer yourself: The chance is so vanishingly small that it is, for all practical purposes, simply impossible. If there isn't some RNG collision... I had experience with one same address in btc core and on blockchain.info Probably got so lucky=) No import\export of course. Generated with period 1 month+. This year. When developing exchange of BitMoney. No proofs but it happened. So... P.S. Oh i see there was some bug on blockchain.info, but how it could coicide with btc core? Title: Re: Is it possible to guess a privkey? Post by: letsplayagame on December 05, 2015, 09:45:33 PM Assuming I was lucky enough to mine the exact same address, could I get the privkey? Yes, if you got the exact same address, then you would have one of the 7.9 X 1028 (on average) working private keys for that address. That is correct. There are 2256 private keys with 2256 public keys. The public key is hashed with ripemd160(sha256(pubkey)). Ripemd160 is limited to 2160 possible solutions thus[1] there are 2160 possible addresses with 2256 private keys or 2256/2160 = 296 private keys per address. 296 ~7.9*1028 [1] under some minor assumptions like even distribution Basically you have a better chance of winning the lottery AND being hit by lightning than guessing the correct private key for a given address. As pointed about in a prior post, the math can change drastically if a faulty RNG was used. |