langerhans / multidoge

MultiDoge is a desktop Dogecoin client, powered by dogecoinj. Ported from the MultiBit Bitcoin client.
http://multidoge.org
MIT License
257 stars 110 forks source link

Invalide "private key"? #27

Closed DarthJahus closed 10 years ago

DarthJahus commented 10 years ago

Hi, MultiDoge devs,

I'm trying to create a cold storage but when I export my private key and try pasting it in the paper wallet creator (dogecoinpaperwallet-master | offline), it says that it's not a valide private key.

Any idea of this?

And my private one (generated by MultiDoge [latest version on Windows 7 x64] is a 53-length key which is like this:

QR…k6

(isn't it reversed?).

Thank you for answering my request.

/u/Jahus

bbicehfj___2

langerhans commented 10 years ago

It's not invalid. MultiDoge generates compressed private keys and the paper wallet generator uses uncompressed keys. Compressed keys start with 'Q' while uncompressed ones start with '6' (for Dogecoin).
On a side note: Why use a MultiDoge generated key for a paper wallet? This is not considered safe for cold storage.
Closing this as not a real issue. Feel free to ask further question though :)
/u/langer_hans

DarthJahus commented 10 years ago

I reported that in case of it was an error. Thank you for your quick reply. You make a good work and I'm relying on your wallet as my connexion is very slow. Just read some stuff and learned about WIF (wallet importe format) on the BitCoin Wiki: https://en.bitcoin.it/wiki/Wallet_import_format Is that key a WIF key?

I know that creating a cold storage is better with generating directly a new private key/public key.

One more question. Can MultiDoge import a private key or is it importing just WIF keys?

Thank you again, fellow shibe.

langerhans commented 10 years ago

A WIF encoded key is just another form of a private key. So both the Q... and 6... keys are WIF keys. This answer shows the actual one-byte-big difference: http://bitcoin.stackexchange.com/a/3839
MultiDoge can import WIF keys by placing them in a file just like the one you exported.