Guest User

Untitled

a guest
Nov 17th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. const privateKey = ‘0x0123’;
  2. const userPassword = ‘1234’;
  3. const wallet = new DetherJS.Ethers.Wallet(privateKey);
  4. const encryptedWallet = await wallet.encrypt(userPassword);
  5. const user = await dether.getUser(encryptedWallet);
Add Comment
Please, Sign In to add comment