Last active
November 15, 2021 09:28
-
-
Save onmax/c8b02f8ac7f359a6637f5de0e3f77b27 to your computer and use it in GitHub Desktop.
Get private key as string from keystore
This file contains hidden or 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
const keythereum = require('keythereum') | |
const keystore = require("path/to/keystore.json") | |
const password = "PASSWORD" | |
const privateKey: string = keythereum.recover( | |
password, | |
keystore | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment