@nodefactory/bls-keystore

Bls keystore implementation as per draft EIP 2335 for node and browser.
Electron usage
- Set env variable ELECTRON=true because electron replaces openssl with BoreSSL which
causes some incompatibilities when using native modules.
How to use?
import {Buffer} from "buffer";
import {Keystore} from "@nodefactory/bls-keystore";
const privateKey: Buffer;
const password = "SomePassword123";
const keystore = Keystore.encrypt(privateKey, password, "m/12381/60/0/0");
keystore.verifyPassword(password);
const decryptedPrivateKey: Buffer = keystore.decrypt(password);
keystore.toJSON();
For key derivation checkout @chainsafe/bls-ts-key-mgmt
Contribute
- get yarn
- yarn install
- yarn test
Built by
