If I have the plaintext private key, -how- can I generate a geth
-compatible keystore file using Node.js?
I think I need to encrypt it using the scrypt
algorithm by supplying a password, but I don't know how to do this. Any -preferrably browserifiable- examples would be highly appreciated.
Thanks,
Best Answer
geth-compatible keystore file can be created in Node using ethereumjs-wallet library:
You can also specify additional options to control kdf, cipher and other wallet params. See here.