How to create a private key
CarlosBalladares opened this issue · 2 comments
CarlosBalladares commented
Any help is appreciated. I can't find a way to generate a private key from a SYNC wallet. All I can get is the keystore.
I'm trying to use connex repl. which requires the private key to import a wallet.
How do I get this private key?
libotony commented
Try Keystore.decrypt(keystore, 'your password')
https://github.com/vechain/thor-devkit.js/blob/master/src/keystore.ts#L35
CarlosBalladares commented
Thanks, this solves the issue