@gxchain2/wallet
v0.0.1
Published
[](https://www.npmjs.org/package/@gxchain2/wallet) 
Readme
@gxchain2/wallet
Wallet based on ethereumjs-wallet, for managing local accounts
INSTALL
npm install @gxchain2/walletUSAGE
const manager = new AccountManager('/root/.gxchain2/keystore');
// new account
const { address } = await manager.newAccount('passphrase');
console.log('new address:', address);
// unlock account
await manager.unlock(address, 'passphrase');
// get account private key
console.log(manager.getPrivateKey(address).toString('hex'));