0.4.0 • Published 5 years ago
inblox-ethereum-wallet v0.4.0
inblox-ethereum-wallet
A lightweight wallet implementation. At the moment it supports address creation, keyStore File generation and decrypting file.
Installation
This is a Node.js module available through the
npm registry. It can be installed using the
npm
command line tools.
npm install inblox-ethereum-wallet --save
It is complemented by the following packages:
- ethereumjs-wallet for creating private key
- eth-lightwallet A minimal ethereum javascript wallet.
Tests
npm install
npm test
##USAGES
The use this package you need to do the following things in your entry level file.
const EthereumWalletService = require('inblox-ethereum-wallet')
// used for generating privateKey,address,secretSeed
EthereumWalletService
.generateAddress({ password: 'password' })
.then((response) => {
const { privateKey,address,secretSeed } = response;
});
// used for generating key store file
const { fileName,data } = EthereumWalletService
.generateKeyStoreFile({
password: 'password',
privateKey: '20099d33b29c0efe4d8e6adfa05b3c553c1b9770abf4d1678d34027da03c81d6',
address: '0x532b2dc2c616b10401a747e5f601d7968eb39c32',
})
//used for decrypting file
const { privateKey,publicKey,address } = EthereumWalletService
.decryptFile({ filePath, password: 'password' });
Dependencies
- ethereumjs-wallet for creating private key
- eth-lightwallet A minimal ethereum
Dev Dependencies
None
License
MIT