Bitcoin Forum
June 17, 2024, 06:20:10 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Can't import private key (litecoin paper wallet)  (Read 3810 times)
WeMineCoins (OP)
Member
**
Offline Offline

Activity: 63
Merit: 10


View Profile WWW
August 15, 2014, 09:25:47 AM
 #1

I was moving some coins around today and everything went fine for 6 out of the 7 paper wallets I wanted to move coins from but 1 of them will not let me import the private key into the litecoin-qt client or electrum. The error I get is

Invalid private key encoding (code -5)

(Possibly useful info)
I generated a number of keys when i made the one i sent coins to here is an empty address that also doesn't work.

Litecoin Address: LZkNB3aXU7TqEnucv5usASW82C2z47vzZN

Private Key (Wallet Import Format): vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWe

When ever I try to import that private key it gives me the same error.

Anyone know what I need to do to get around this error?

The Technical Founder of WeMineCoins
WeMineCoins (OP)
Member
**
Offline Offline

Activity: 63
Merit: 10


View Profile WWW
August 16, 2014, 02:33:13 PM
 #2

bump if someone solves this I'll reward them.

The Technical Founder of WeMineCoins
zolace
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
August 16, 2014, 03:03:05 PM
 #3

Here is how to add the private key to the Litecoin-Qt (standard) wallet.

Click the "Help" menu and choose "Debug window."

Go to the "Console" tab.

Type in the command importprivkey leave a space and then paste in the private key. Press <enter> and the client will import the key. It may take a while for it to processes. The address will show up in your "Receive Coins" addresses and becomes part of the Litecoin-Qt's wallet. Please note that private keys are normally longer

If you encrypted your wallet, you will need to type in this command before the 'importprivkey' command:
walletpassphrase 'your secret password' '30'

To export your private key from an address in your Litecoin-Qt wallet, follow all the same instructions but instead use the dumpprivkey command in place of the importprivkey command. Like this:

Code: [Select]

dumpprivkey <litecoinaddress>


Example:

Code: [Select]

dumpprivkey LVjpg1vHQryg6keCZ3rLW93KXoQUNSUhhZ

I hope this helps, seems like your code is short

⚂⚄ Pocket Dice — Real dice experienceProvably Fair
Free BTC Faucet
⚅⚁
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
WeMineCoins (OP)
Member
**
Offline Offline

Activity: 63
Merit: 10


View Profile WWW
August 16, 2014, 03:06:55 PM
 #4

Here is how to add the private key to the Litecoin-Qt (standard) wallet.

Click the "Help" menu and choose "Debug window."

Go to the "Console" tab.

Type in the command importprivkey leave a space and then paste in the private key. Press <enter> and the client will import the key. It may take a while for it to processes. The address will show up in your "Receive Coins" addresses and becomes part of the Litecoin-Qt's wallet. Please note that private keys are normally longer

If you encrypted your wallet, you will need to type in this command before the 'importprivkey' command:
walletpassphrase 'your secret password' '30'

To export your private key from an address in your Litecoin-Qt wallet, follow all the same instructions but instead use the dumpprivkey command in place of the importprivkey command. Like this:

Code: [Select]

dumpprivkey <litecoinaddress>


Example:

Code: [Select]

dumpprivkey LVjpg1vHQryg6keCZ3rLW93KXoQUNSUhhZ

I hope this helps

The error litecoin-qt spits out when i do that is this
Invalid private key encoding (code -5)
And yes I've decrypted the wallet already and tried it on a new wallet that wasn't even encrypted same results.

The Technical Founder of WeMineCoins
zolace
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
August 16, 2014, 03:10:01 PM
 #5

Hmm are you copy and pasting, this shouldnt happen usually.  if your copy and pasting make sure your not getting an extra space on it

Also And you are sure they key isn't already in the wallet?

⚂⚄ Pocket Dice — Real dice experienceProvably Fair
Free BTC Faucet
⚅⚁
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
zolace
Sr. Member
****
Offline Offline

Activity: 364
Merit: 250


View Profile
August 16, 2014, 03:15:00 PM
 #6

also try to run rescan from dos. open a dos prompt change directory to where the litecoin-qt program is and then type litecoin-qt -rescan

this could take a while but it might work.

⚂⚄ Pocket Dice — Real dice experienceProvably Fair
Free BTC Faucet
⚅⚁
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
thefunkybits
Legendary
*
Offline Offline

Activity: 1218
Merit: 1000


View Profile
August 16, 2014, 03:22:35 PM
 #7

Did you decrypt the wallet in console? and with a sufficient timeout?

I always used to have trouble with this as well...
WeMineCoins (OP)
Member
**
Offline Offline

Activity: 63
Merit: 10


View Profile WWW
August 16, 2014, 04:51:07 PM
 #8

Hmm are you copy and pasting, this shouldnt happen usually.  if your copy and pasting make sure your not getting an extra space on it

Also And you are sure they key isn't already in the wallet?

The key is not already in the wallet and rescan is pointless (though I've tried it anyways) since the key won't import.

Try using the private key I posted and you should get the error.

Did you decrypt the wallet in console? and with a sufficient timeout?

I always used to have trouble with this as well...

Yes I've decrypted the wallet and tried to import the key on a fresh non encrypted wallet. I always get the same error.

The Technical Founder of WeMineCoins
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
August 16, 2014, 09:29:55 PM
 #9

LTC Private Key WIF is 51 characters base58, starts with a '6' or 52 characters base58, starts with a 'T'.
You have a shorter key, so i think, some characters are missing from begin.

WeMineCoins (OP)
Member
**
Offline Offline

Activity: 63
Merit: 10


View Profile WWW
August 16, 2014, 10:21:29 PM
 #10

LTC Private Key WIF is 51 characters base58, starts with a '6' or 52 characters base58, starts with a 'T'.
You have a shorter key, so i think, some characters are missing from begin.



The way I showed you the private key in my initial post is how it was generated. Perhaps I used a faulty program that generated a valid address and invalid private key? That would be a shame.

The Technical Founder of WeMineCoins
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
August 17, 2014, 11:19:32 PM
 #11

LTC Private Key WIF is 51 characters base58, starts with a '6' or 52 characters base58, starts with a 'T'.
You have a shorter key, so i think, some characters are missing from begin.



The way I showed you the private key in my initial post is how it was generated. Perhaps I used a faulty program that generated a valid address and invalid private key? That would be a shame.
How long is your private key string?
WeMineCoins (OP)
Member
**
Offline Offline

Activity: 63
Merit: 10


View Profile WWW
August 18, 2014, 01:08:43 PM
 #12

LTC Private Key WIF is 51 characters base58, starts with a '6' or 52 characters base58, starts with a 'T'.
You have a shorter key, so i think, some characters are missing from begin.



The way I showed you the private key in my initial post is how it was generated. Perhaps I used a faulty program that generated a valid address and invalid private key? That would be a shame.
How long is your private key string?

The one I'm trying to recover the coins from was generated at the same time as this one here so it's the same length.
Litecoin Address: LZkNB3aXU7TqEnucv5usASW82C2z47vzZN

Private Key (Wallet Import Format): vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWe

The Technical Founder of WeMineCoins
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
August 18, 2014, 02:31:22 PM
 #13

The one I'm trying to recover the coins from was generated at the same time as this one here so it's the same length.
Litecoin Address: LZkNB3aXU7TqEnucv5usASW82C2z47vzZN

Private Key (Wallet Import Format): vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWe
Ah, i see. Is the generator app/program public available?
(i have some idea, but it would help, if i can generate a wrong private key)

Elbandi
WeMineCoins (OP)
Member
**
Offline Offline

Activity: 63
Merit: 10


View Profile WWW
August 20, 2014, 02:12:37 PM
 #14

The one I'm trying to recover the coins from was generated at the same time as this one here so it's the same length.
Litecoin Address: LZkNB3aXU7TqEnucv5usASW82C2z47vzZN

Private Key (Wallet Import Format): vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWe
Ah, i see. Is the generator app/program public available?
(i have some idea, but it would help, if i can generate a wrong private key)

Elbandi

I either used cryptowallets.org or liteaddress.org to generate it. I think the key to figuring this out revolves around figuring out why the private key starts with a letter other than 6 or T.

The Technical Founder of WeMineCoins
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
August 20, 2014, 05:28:20 PM
 #15

The one I'm trying to recover the coins from was generated at the same time as this one here so it's the same length.
Litecoin Address: LZkNB3aXU7TqEnucv5usASW82C2z47vzZN

Private Key (Wallet Import Format): vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWe
I can generate the privkey started with 6vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWe :

Code:
privkey: 6vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWe598j6C
pubkey: LY9BJz6HdYkh4n5oHvzmAo2fHkL8EV6BW6
pubkey (comp): Lgjv9Z3cNrmztbaJ8bpW88W3Y3MKHdRnrz
------
privkey: 6vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWeCM9v3B
pubkey: LVTj7DbByfzVDKjtCAAU6iGyjGNUwSvNXU
pubkey (comp): LVzTGFgzQg4S3KsRJLTnwBBspYnPF3yr86
------
privkey: 6vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWeHABy9L
pubkey: LX1vepRBeeKJc4Tmux1cBNE4GuN4fCTDLe
pubkey (comp): LTbBeMFPVzxqXQ9RfntV598M2vtuQ6qLyi
------
privkey: 6vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWeP43WR7
pubkey: LcCTuXiTDocnic9NDFnY3ovUU8G137k3u2
pubkey (comp): LcDiNJJX64AdiLYMeiFrHiJycneV3xeZ86
------
privkey: 6vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWeX1erYT
pubkey: LWBAiYHr2ErsiR2YFgvzUYAf7pc8LPCjmU
pubkey (comp): LYGCSm6SpCdYDNCiYqDUZ1z8V8Ko2r4p4s
------
privkey: 6vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWefy3Kyk
pubkey: LY51BaA3nULX7C7Zy276XDc9A4J9yJ5aDe
pubkey (comp): LXroNP7X7hShMm8kTUpcx99iDyVCoifziE
------
privkey: 6vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWeoLyumZ
pubkey: LPpH3ipSZgD84F7tDpCLyoS35ZspFGYc4W
pubkey (comp): LKruyhszFiaMhq2hpkyeTkgk8HUKo4BmBF
------
privkey: 6vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWet1UkvA
pubkey: LUtUmXKqC37auPXYPozUD5mYTnhshEw6ob
pubkey (comp): LSt94Th8K6PRyiF2KC6EsWCkR8FVGw7GJv
------
privkey: 6vbBoiGtUDZPoADY36ymfbnoXicFZXW7UHKWTxD7uuGWey4D4Vn
pubkey: LdX89nkiYHrBFdSvBKkGam6SZ6b2Ytywdg
pubkey (comp): LLhRgYKjEYApgFhHP5UXgLDajcGeQt3gnp
------

but none of them has that litecoin address Sad
ijl53
Member
**
Offline Offline

Activity: 64
Merit: 10


CyptoLong


View Profile
August 21, 2014, 04:51:53 AM
 #16

Im having the same problem!! just tried to import some keys from a paper wallet generated on http://www.liteaddress.org/  ages ago. I can see the coins using an address watcher, but when trying to import on the qt it gives me the exact error code! yet my address does begin with a 6. I wish there was a blockchain like app for ltc. it would make paper wallets hassle free. Anyways, anyone have any suggestions? thanks!

WeMineCoins (OP)
Member
**
Offline Offline

Activity: 63
Merit: 10


View Profile WWW
August 21, 2014, 02:06:13 PM
 #17

Im having the same problem!! just tried to import some keys from a paper wallet generated on http://www.liteaddress.org/  ages ago. I can see the coins using an address watcher, but when trying to import on the qt it gives me the exact error code! yet my address does begin with a 6. I wish there was a blockchain like app for ltc. it would make paper wallets hassle free. Anyways, anyone have any suggestions? thanks!

The fix to your problem sounds like it may be as simple as trying http://electrum-ltc.org/

The Technical Founder of WeMineCoins
WeMineCoins (OP)
Member
**
Offline Offline

Activity: 63
Merit: 10


View Profile WWW
August 24, 2014, 04:43:11 PM
Last edit: August 24, 2014, 06:04:54 PM by WeMineCoins
 #18

Shocked no one else has run into this issue / can't assist with this.

Edit : Solved - The stated private key was different than what we saw when we used the barcode scanner app on our mobile phone which gave us the actual normal private key.

The Technical Founder of WeMineCoins
FredDag
Sr. Member
****
Offline Offline

Activity: 436
Merit: 250



View Profile
September 03, 2014, 01:28:00 PM
 #19

Edit : Solved - The stated private key was different than what we saw when we used the barcode scanner app on our mobile phone which gave us the actual normal private key.

What does this mean?

I'm having the same issue & don't understand how you solved it.
Cryptobro
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
September 03, 2014, 01:46:35 PM
 #20

Sounds like when he scanned the qr code of the address on his cellphone the private key shown was the correct one.
Originally he was using an invalid key that may been generated incorrectly by the paper wallet generator.

You should try scan the qr code to see if that solves your problem.

(Note: I could be reading this wrong...I'm actually having the same problem but don't have a way to scan my code)
Pages: [1] 2 »  All
  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!