Advertisement
Guest User

Untitled

a guest
Jan 15th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. //var util = require('util');
  2. import Web3 from 'web3';
  3. //var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
  4. class Account{
  5. constructor(password, phrase){
  6. //bcrypt password & phrase asap
  7. this._crypted_pass = password;
  8. this._crypted_phrase = phrase;
  9.  
  10. }
  11.  
  12. }
  13.  
  14. class Wallet{
  15. constructor(){
  16. this._accounts = {};
  17. }
  18.  
  19. accounts(){
  20. return this._accounts;
  21. }
  22.  
  23. create_account(password, phrase){
  24. var account = new Account(password, phrase);
  25. _accounts.push(account);
  26. }
  27. }
  28.  
  29. module.exports = Wallet;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement