codechain-keystore
Last updated 7 days ago by jh_kodebox .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install codechain-keystore 
SYNC missed versions from official npm registry.

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

var CCKey = require('codechain-keystore');

async function example() {
  const cckey = await CCKey.create();
  const savedKeys = await cckey.platform.getKeys();
  console.dir(savedKeys);
  await cckey.platform.createKey({ passphrase: "my password" });
  const savedKeys_ = await cckey.platform.getKeys();
  console.dir(savedKeys_);

  await cckey.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

Current Tags

  • 0.6.2                                ...           latest (7 days ago)

18 Versions

  • 0.6.2                                ...           7 days ago
  • 0.6.1                                ...           8 months ago
  • 0.6.0                                ...           9 months ago
  • 0.5.4                                ...           10 months ago
  • 0.4.1                                ...           10 months ago
  • 0.5.3                                ...           10 months ago
  • 0.5.2                                ...           10 months ago
  • 0.5.1                                ...           10 months ago
  • 0.5.0                                ...           10 months ago
  • 0.4.0                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.3                                ...           a year ago
  • 0.2.2                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.0                                ...           a year ago
  • 0.1.0-rc.1                                ...           a year ago
  • 0.1.0-rc.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 52
Last Day 0
Last Week 52
Last Month 22
Dependencies (7)
Dev Dependencies (13)

Copyright 2014 - 2016 © taobao.org |