Skip to content

Latest commit

 

History

History

wallet

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@rei-network/wallet

NPM Version License

Wallet based on ethereumjs-wallet, for managing local accounts

INSTALL

npm install @rei-network/wallet

USAGE

const manager = new AccountManager("/root/.rei/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"));

License

GNU General Public License v3.0