CodeChain keystore is a private key management library. It saves CodeChain's asset transfer address safely in a disk. If you want to manage CodeChain keys using nodejs, you should use this.
varCCKey=require('codechain-keystore');asyncfunctionexample(){constcckey=awaitCCKey.create();constsavedKeys=awaitcckey.platform.getKeys();console.dir(savedKeys);awaitcckey.platform.createKey({passphrase: "my password"});constsavedKeys_=awaitcckey.platform.getKeys();console.dir(savedKeys_);awaitcckey.close();};example();We use a JSON file to save an encrypted private key. You can find the file in ./keystore.db