I'm attempting to import a transcribed geth UTC--... format keyfile into geth on ubuntu, using this guidance, and am getting the following error:
Fatal: Failed to load the private key: encoding/hex: invalid byte: U+007 B '{'
There are a few other similar questions but none ask why this error occurs.
- Importing paper wallet using geth gives encoding error
- Import private key into ethereum wallet
- How to import an icebox encrypted wallet into Geth
- Export Parity private key
I'm guessing the file must be in UTF-8 encoding. On using file -i on a terminal it returns:
UTC--etc_file_name text/plain; charset=us-ascii
I think us-ascii is a subset of UTF-8, so it should work....
Why is this error occuring?
What is the correct encoding for geth keystore files?