1.2.0 • Published 3 years ago
@thuleen/owner-wallet v1.2.0
@thuleen/owner-wallet
owner-waller is a wrapper to eth-lightwallet.
Installation
Using npm:
$ npm i @thuleen/owner-wallet
In react application.js:
// Import the module
import { OwnerWallet } from "@thuleen/owner-wallet";
const password = "PassWord123@";
const ow = new OwnerWallet();
const newWallet = await ow.create({ password: password });
// { seed: "twelve seeds phrases...", accountId: "0x..." }
const restoredWallet = await ow.restore({seed: <seed>, password: <password>})
// {accountId : "0x..."}