I created an account with eth
and ended up with a JSON file in the Web3 Storage Definition format. After backing up this JSON file, I am able to delete my .web3
directory and reimport this JSON file into eth
as I would expect.
Now I'd like to try geth
with my existing account. As I understand, geth account import
expects not the JSON file, but rather a file containing just the "ciphertext" value from the JSON file. Upon providing that, geth asks me to set a new passphrase, then prints the address of the imported key.
Problem: the address geth
shows for my imported key is different from the address eth
knows! And when I view the JSON file that geth
created from my import, its "ciphertext" value is different from the one I provided.
Question: Starting with the JSON file I have, how do I import my account correctly into geth
?