0.0.6 • Published 6 years ago

umb-key v0.0.6

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
6 years ago

umb-key

Simple module to manage EOS keys with master password.

Installation

$ npm install --save umb-key

Usage

const key = require('umb-key');

let masterPasswd = ..
let secret1 = 'secret-key-1';
let secret2 = 'secret-key-1';
key.exportKey(secret2, masterPasswd, folder, "secret1");
key.exportKey(secret2, masterPasswd, folder, "secret2");

// reimport key
secret1 = lib.importKey(folder, 'secret1', masterPasswd);
secrets = lib.importKeys(folder, masterPasswd);
//{
//   secret1: 
//   secret2:
//}

// manage EOS account
lib.generateKey((key) => {
    let account = lib.EOSAccount(id, key);
    lib.saveAccountToStore('/tmp/eos', account, masterPasswd);
    
    // restore account
    account = lib.loadAccountFromStore('/tmp/eos', masterPasswd);
})

// hash message using sha-256
let ss = lib.hash('hello, world!');

// access eosjs-ecc
lib.ecc.

LICENSE

MIT

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago