almindor / etherwall

Ethereum QT5 Wallet
GNU General Public License v3.0
142 stars 59 forks source link

Exporting private key #78

Closed Tuen closed 6 years ago

Tuen commented 6 years ago

Is there a way I can export the private key so that I can import it into a different wallet?

almindor commented 6 years ago

Hey, which wallet do you need to import into?

Neither Etherwall nor Geth currently allow "decrypting" of the private key. You should be able to export the account encrypted (as a JSON file) by right clicking and exporting to directory. NOTE: this is saved in the geth compatible format that stays encrypted with your password.

The reason Etherwall doesn't allow getting the raw private key is simply because Geth doesn't expose that functionality and Etherwall uses geth for account security.

If you really need to get the raw private key export the geth account and import it into MyEtherWallet. I believe they have the option of getting the raw key out.

NOTE: ensure you check the URL/source of any webpage/software you use and double-check the SSL certificates too.

Tuen commented 6 years ago

Thanks for the advice almindor. Really appreciate it. I exported the wallet backup file and imported it into MetaMask. But I received this error:

image

Is this because Metamask is not compatible with the json export from Etherwall? What does the error "unexpected token in JSON at position 0" mean?

Would I get the same error with MyEtherWallet?

Any advice much appreciated!

Thanks!

almindor commented 6 years ago

I think you mixed up the two export types.

There's a "wallet/export" in main menu which is Etherwall-only and exports the whole wallet with all accounts and settings. This is not compatible with anything outside Etherwall.

What you want for Metamask and others is go to accounts tab, select your desired account and right click and select export account to directory.

NOTE: the filename will be something like UTC--

--

export_single_account

Tuen commented 6 years ago

Oh wow! Thanks so much for that. I didn't realise there was another export function. I'll try that out!

Tuen commented 6 years ago

It worked! Thanks a lot for the help.

almindor commented 6 years ago

Glad to hear it, closing issue