vechain / thor-devkit.js

Typescript library to aid DApp development on VeChain Thor
MIT License
39 stars 30 forks source link

How to create a private key #31

Closed CarlosBalladares closed 3 years ago

CarlosBalladares commented 3 years ago

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 3 years ago

Try Keystore.decrypt(keystore, 'your password') https://github.com/vechain/thor-devkit.js/blob/master/src/keystore.ts#L35

CarlosBalladares commented 3 years ago

Thanks, this solves the issue