Skip to content

Repository files navigation

CodeChain keystore Build Status

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.

Example

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();

How your private key is saved

We use a JSON file to save an encrypted private key. You can find the file in ./keystore.db

About

A private key management library for CodeChain

Topics

Resources

Stars

14 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages