Open offerm opened 5 years ago
Hey @offerm good point. Your keyfile is (probably) still in v1 of the Web3 secret storage format. The latest one is v3. The one you have could be v1 even though it looks a bit different
I also have accounts from the launch of ethereum but somehow (perhaps geth auto-updated them) they seem to conform to the v3 version of the web3 secret storage.
We could try to handle all versions of the secret storage format I suppose.
Is there a library for reading keyfiles?
web3 should do it: https://web3py.readthedocs.io/en/stable/web3.eth.account.html
My account file, created 2 years back (I think with mist) has this inside:
Contract deployment fails when using this file since the code is looking for lower case "crypto".
I made a local change here to solve it, but you may like to have a more generic solution.