SMESH App keystore to CLIWallet json file convertor
SMESH keystore files are encrypted and cannot be used by CLIWallet.
CLIWallet wallet files are simple JSON files containing only the private and public keys.
This utility extracts all the private/public keypairs from a keystore and writes them to individual JSON files.
smesh2cli -input -password -output
password- your smesh app password
output file basee.g.
A keystore file can contains multiple names key pairs. Assuming that you had two, workKey and funKey, they would be saved as two files
smdata/wallet1.json. The conversion process will indicate how they were saved.
Richard Moore's aes-js as used in the SMESH app
This explained how to implement the line
const aes1Ctr = new aes.ModeOfOperation.ctr(key, new aes.Counter(5)); // eslint-disable-line new-cap