Created
February 22, 2017 15:04
-
-
Save konradkonrad/5575b52ff493e8b4d41e7cac68c52479 to your computer and use it in GitHub Desktop.
decode private key from Web3-Secret-Storage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 :)