nochowderforyou / clams

Clam Project
MIT License
62 stars 58 forks source link

Can't import wallet when password contains spaces? #306

Open ckcollab opened 7 years ago

ckcollab commented 7 years ago

Heyo! Trying to import an old dogecoin wallet, one worked (woo!) but the other one with spaces in the password gives this error:

Error: Error parsing JSON:can

(can is the worst word in the password, something like can so and so do this and that yadda yadda is the actual password)

tryphe commented 7 years ago

Hey there. This is a pretty common bug with the RPC parser for most coins. It uses space as a delimiter so your password gets truncated, but the box where you first input the password doesn't.

A few people that have had this issue were able to use this python script to decrypt their wallet and dig their clams, however I've never used it. Check it out: https://github.com/jackjack-jj/pywallet

It looks like you can run something like python pywallet --wallet=/foo/bar/wallet.dat --passphrase="password" --dumpwallet="unencrypted_wallet.dat" to get your unencrypted keys out.
You should then be able to import the dumpwallet into clams without any password prompt.

Hope it helps. Let us know if you have any issues.