foundry-keystore
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Foundry keystore Build Status

Foundry keystore is a private key management library. It saves Foundry's account address safely in a disk. If you want to manage Foundry keys using nodejs, you should use this.

Example

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

async function example() {
  const cckey = await CCKey.create();
  const savedKeys = await cckey.keystore.getKeys();
  console.dir(savedKeys);
  await cckey.keystore.createKey({ passphrase: "my password" });
  const savedKeys_ = await cckey.keystore.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

Readme

Keywords

Package Sidebar

Install

npm i foundry-keystore

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

116 kB

Total Files

42

Last publish

Collaborators

  • jmyang_kodebox
  • hoongee
  • jh_kodebox
  • cubismic
  • jjg_kodebox
  • rbtree_kodebox
  • suengmin-codechain