Skip to content

Instantly share code, notes, and snippets.

@konradkonrad
Created February 22, 2017 15:04
Show Gist options
  • Save konradkonrad/5575b52ff493e8b4d41e7cac68c52479 to your computer and use it in GitHub Desktop.
Save konradkonrad/5575b52ff493e8b4d41e7cac68c52479 to your computer and use it in GitHub Desktop.
decode private key from Web3-Secret-Storage
from ethereum.keys import decode_keystore_json
with open('/path/to/keystorefile.json') as f:
print decode_keystore_json(json.load(f), 'yoursecret').encode('hex')
@konradkonrad
Copy link
Author

a note of advise: this is a terrible idea if your handling an account with real money, because your keyfile secret as well as your privatekey will end up in your terminal. if you don't see a problem with this, you should probably not do it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment