Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //var util = require('util');
- import Web3 from 'web3';
- //var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
- class Account{
- constructor(password, phrase){
- //bcrypt password & phrase asap
- this._crypted_pass = password;
- this._crypted_phrase = phrase;
- }
- }
- class Wallet{
- constructor(){
- this._accounts = {};
- }
- accounts(){
- return this._accounts;
- }
- create_account(password, phrase){
- var account = new Account(password, phrase);
- _accounts.push(account);
- }
- }
- module.exports = Wallet;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement