https://github.com/tmpfs/geth-private-key-dump
Dump a private key from geth keystore using keythereum
https://github.com/tmpfs/geth-private-key-dump
Last synced: 10 months ago
JSON representation
Dump a private key from geth keystore using keythereum
- Host: GitHub
- URL: https://github.com/tmpfs/geth-private-key-dump
- Owner: tmpfs
- Created: 2022-01-30T00:03:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-30T00:03:51.000Z (almost 4 years ago)
- Last Synced: 2025-01-05T02:12:16.519Z (12 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Geth Private Key Dump
USE THIS AT YOUR OWN RISK ONLY IF YOU KNOW WHAT YOU ARE DOING!
Geth does not support exporting private keys but you may want to move your private key to a paper wallet or import it into another wallet (eg: MetaMask) to perform some transactions.
This tiny script uses [keythereum][] to do that.
* Run `npm install`
* Set `datadir` to geth data directory.
* Set `address` to the public address of the key pair.
* Replace `_KEY_PASSPHRASE_` with your geth key passphrase.
* Disconnect from the internet.
* Run the script (`node dump.js`).
* Store the private key as a paper wallet or import into another wallet.
* Delete the password from the file.
[keythereum]: https://github.com/ethereumjs/keythereum/