golfpro10 (OP)
Newbie
Offline
Activity: 5
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 21, 2017, 02:10:48 AM |
|
So back in 2013 I bought some bitcoins and I created a public and private key offline using bitaddress.org. I will check them occasionally on blockchain using the public key to confirm they are still there. Well today for the first time ever I tried transfer a bitcoin to my blockchain wallet and it said the private key is not valid. It is showing the coins are in there but I cannot access them. My private Key is 51 keys long and starts with a 5. When i go to type in the private key on blockchain it tells me it is invalid until I type in the 40th key then it gives me an option to import until i type in the 45th key then it tells me it is invalid again and grays out the option to import it again. I think the private key might be some old technology that needs to be converted. Not sure if anyone can help me. If you can help out i would be willing to send a little bitcoin your way if I can get this fixed. Thanks
|
|
|
|
hexafraction
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 392
Merit: 268
Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 21, 2017, 02:15:29 AM |
|
Just sent you a PM following up for more details.
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4318
<insert witty quote here>
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 21, 2017, 03:34:23 AM |
|
if it is 51 chars and starts with a 5... you have an "uncompressed private key in WIF" format. You can double check if you have written it down correctly by using bitaddress.org. DO NOT type your private key straight into the online version!! You need to download a copy of the bitaddress.org website (use the link at the bottom of the page for their Github or "zip"). Run it offline on your PC, then select "Wallet Details", and type your key into the box and click "view details". You should see the matching "uncompressed public key". If you don't, then your private key is incorrect. Also, to be honest, using blockchain.info wallet is a very bad idea. Their fee system is broken at the moment, and if you try to send your coins anywhere, chances are it will use a stupid low fee and your transaction will get stuck. I'd recommend getting Electrum and "sweeping" your key into a new "seeded" wallet. Instead of doing the bitaddress thing, you can also try typing the key into Electrum "sweep" dialog, if the "Sweep" button stays greyed out, then the key is invalid and likely you have transcribed it incorrectly ![Sad](https://bitcointalk.org/Smileys/default/sad.gif) Feel free to PM is you want more help.
|
|
|
|
mmo4me.2016
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 21, 2017, 06:58:57 AM |
|
I think you should check out here! https://coinb.in/Let others check that it is not for the BTC, preferably yourself or the people you trust
|
|
|
|
SopaXT
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 21, 2017, 12:22:57 PM |
|
So back in 2013 I bought some bitcoins and I created a public and private key offline using bitaddress.org. I will check them occasionally on blockchain using the public key to confirm they are still there. Well today for the first time ever I tried transfer a bitcoin to my blockchain wallet and it said the private key is not valid. It is showing the coins are in there but I cannot access them. My private Key is 51 keys long and starts with a 5. When i go to type in the private key on blockchain it tells me it is invalid until I type in the 40th key then it gives me an option to import until i type in the 45th key then it tells me it is invalid again and grays out the option to import it again. I think the private key might be some old technology that needs to be converted. Not sure if anyone can help me. If you can help out i would be willing to send a little bitcoin your way if I can get this fixed. Thanks
Look, try typing the entire key. Upper/lower case matters, so 5MyPrivateKey[...] is not the same as 5myprivatekey[...]. Also, don't use blockchain.info, they are well-known for being hacked multiple times - coins were stolen. I'd suggest using and offline wallet such as Bitcoin Core (bitcoin.org) and importing the private key there. Also, make sure to protect your wallet with a strong password, it's trivial for malware to steal your coins. If you use Windows, I'd also suggest doing this on a Linux live USB (try Ubuntu).
|
|
|
|
|
golfpro10 (OP)
Newbie
Offline
Activity: 5
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 21, 2017, 02:06:47 PM |
|
if it is 51 chars and starts with a 5... you have an "uncompressed private key in WIF" format. You can double check if you have written it down correctly by using bitaddress.org. DO NOT type your private key straight into the online version!! You need to download a copy of the bitaddress.org website (use the link at the bottom of the page for their Github or "zip"). Run it offline on your PC, then select "Wallet Details", and type your key into the box and click "view details". You should see the matching "uncompressed public key". If you don't, then your private key is incorrect. Also, to be honest, using blockchain.info wallet is a very bad idea. Their fee system is broken at the moment, and if you try to send your coins anywhere, chances are it will use a stupid low fee and your transaction will get stuck. I'd recommend getting Electrum and "sweeping" your key into a new "seeded" wallet. Instead of doing the bitaddress thing, you can also try typing the key into Electrum "sweep" dialog, if the "Sweep" button stays greyed out, then the key is invalid and likely you have transcribed it incorrectly ![Sad](https://bitcointalk.org/Smileys/default/sad.gif) Feel free to PM is you want more help. Hello HCP. I tired to enter the private key into bitaddress.org and it says check sum error. So i was assuming i copied it down wrong. But at the time I had made 2 public keys that generated 2 private keys. When i type in the second private key it gives the same error. I find it doubtful that i copied both private keys down incorrectly. Is it possible that Bitaddress gave me bad private keys? read some stuff out there about that? Thanks for the heads up on blockchain and I will use Electrum. It seems to me though that there is a bigger problem with the private keys. Either I transcribed them both wrong or something with bitaddress. I can see the balance on my public key just cant get the private to match.
|
|
|
|
hexafraction
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 392
Merit: 268
Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 21, 2017, 11:40:40 PM |
|
I've written a program that tries different potential "typos" of the key and validates them to see if any are valid Base58check keys using Kotlin/JVM. Once I finish communicating with OP regarding any specific things (GUI or similar considerations) they may need and I add those things, I will post a copy of the code here (for transparency and in case anyone wants to improve upon it).
|
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4318
<insert witty quote here>
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 22, 2017, 02:02:50 AM |
|
Wow... that is some very thorough coverage of the search space for likely possible typos, case sensitivity AND transposition errors! I think that code should cover almost any transcription error that the OP is likely to have made while recording his private keys ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Thanks for posting it up... I'm sure that others will find it very useful.
|
|
|
|
hexafraction
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 392
Merit: 268
Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 22, 2017, 02:25:13 AM |
|
Wow... that is some very thorough coverage of the search space for likely possible typos, case sensitivity AND transposition errors! I think that code should cover almost any transcription error that the OP is likely to have made while recording his private keys ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Thanks for posting it up... I'm sure that others will find it very useful. No problem; I'm happy to provide it to the community. Hopefully it will find more use in other situations like these. Anyway, I received word from OP that this program successfully recovered the typos on both of the keys. golfpro10: If you don't mind sharing when you get a chance, what was the type of mistake with the private key that got repaired? I'm curious, and knowing this would help me know where to focus on some of the more in-depth recovery techniques.
|
|
|
|
Beparanf
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 22, 2017, 02:39:29 AM |
|
This is very useful. You are a genius. This really helps on fixing my private key error. I'm lucky to see this tweak. Kudos sir.
|
| | . .Duelbits│SPORTS. | | | ▄▄▄███████▄▄▄ ▄▄█████████████████▄▄ ▄███████████████████████▄ ███████████████████████████ █████████████████████████████ ███████████████████████████████ ███████████████████████████████ ███████████████████████████████ █████████████████████████████ ███████████████████████████ ▀████████████████████████ ▀▀███████████████████ ██████████████████████████████ | | | | ██ ██ ██ ██
██ ██ ██ ██
██ ██ ██ | | | | ███▄██▄███▄█▄▄▄▄██▄▄▄██ ███▄██▀▄█▄▀███▄██████▄█ █▀███▀██▀████▀████▀▀▀██ ██▀ ▀██████████████████ ███▄███████████████████ ███████████████████████ ███████████████████████ ███████████████████████ ███████████████████████ ███████████████████████ ▀█████████████████████▀ ▀▀███████████████▀▀ ▀▀▀▀█▀▀▀▀ | | OFFICIAL EUROPEAN BETTING PARTNER OF ASTON VILLA FC | | | | ██ ██ ██ ██
██ ██ ██ ██
██ ██ ██ | | | | 10% CASHBACK 100% MULTICHARGER | │ | | │ |
|
|
|
hexafraction
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 392
Merit: 268
Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 22, 2017, 02:55:52 AM |
|
This is very useful. You are a genius. This really helps on fixing my private key error. I'm lucky to see this tweak. Kudos sir. No problem, feel free to share it around or drop a tip if it helped. Anyway, there's now an actual release at https://github.com/hexafraction/wif-repair/releases
|
|
|
|
|
hexafraction
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 392
Merit: 268
Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 22, 2017, 03:25:42 AM |
|
I just wrote this program to fix this issue for the OP, so they are all set ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif)
|
|
|
|
golfpro10 (OP)
Newbie
Offline
Activity: 5
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 22, 2017, 04:07:52 AM |
|
I wanted to thank everyone for their comments and help especially Hexafraction who wrote the code for me and helped me unlock my coins. He is a class act!!
|
|
|
|
golfpro10 (OP)
Newbie
Offline
Activity: 5
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 22, 2017, 04:21:57 AM |
|
Wow... that is some very thorough coverage of the search space for likely possible typos, case sensitivity AND transposition errors! I think that code should cover almost any transcription error that the OP is likely to have made while recording his private keys ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) Thanks for posting it up... I'm sure that others will find it very useful. No problem; I'm happy to provide it to the community. Hopefully it will find more use in other situations like these. Anyway, I received word from OP that this program successfully recovered the typos on both of the keys. golfpro10: If you don't mind sharing when you get a chance, what was the type of mistake with the private key that got repaired? I'm curious, and knowing this would help me know where to focus on some of the more in-depth recovery techniques. Hey Hexafraction on your question. On one of the private keys there was a lower case g and was supposed to be a lower case q. The other one was quite strange. It was a uppercase L that was supposed to be an upper case H. Not real sure how i messed that up but the code Hexafraction wrote caught the error.
|
|
|
|
hexafraction
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 392
Merit: 268
Tips welcomed: 1CF4GhXX1RhCaGzWztgE1YZZUcSpoqTbsJ
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 22, 2017, 04:33:03 AM |
|
Hey Hexafraction on your question. On one of the private keys there was a lower case g and was supposed to be a lower case q. The other one was quite strange. It was a uppercase L that was supposed to be an upper case H. Not real sure how i messed that up but the code Hexafraction wrote caught the error.
No problem, it happens. I'm glad that the substitution step caught the error.
|
|
|
|
|