Skip to content

Instantly share code, notes, and snippets.

@onmax
Last active November 15, 2021 09:28
Show Gist options
  • Save onmax/c8b02f8ac7f359a6637f5de0e3f77b27 to your computer and use it in GitHub Desktop.
Save onmax/c8b02f8ac7f359a6637f5de0e3f77b27 to your computer and use it in GitHub Desktop.
Get private key as string from keystore
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