7

Does anyone know some good working examples of the Eth-Lightwallet and the Hooked-Web3-Provider working together?

I was trying to get https://github.com/ConsenSys/eth-lightwallet/blob/master/example/example_web.html to work but it aborts with

Uncaught Reference Error: web3 is not defined

Update: looking for a Meteor implementation.

  • Hi Alan, did you fork the lightwallet project? have you solved the problem? Thanks for sharing the solution ;-) – Bigmoby Apr 14 '16 at 15:21
  • I didn't need to fork it. So far, I've succeeded implementing it the way it is but stayed in Meteor 1.2.1 - I plan to upgrade to Meteor 1.3 as it matures. There are good Meteor packages to help. Happy to discuss in more detail. – Alan Wunsche Apr 15 '16 at 2:10
  • FYI: This is old enough now that another library has come on the scene and does it better. Check out the web3-provider-engine which includes a lightwallet and transaction signing subprovider. github.com/MetaMask/provider-engine – Tim Coulter Sep 28 '16 at 18:19
6

That, by default, requires you to run your own web3 instance, you can use this one for starting:

webwallet.html

The complete instructions are:

  • Download the git repo (git clone https://github.com/ConsenSys/eth-lightwallet), enter the eth-lightwallet directory
  • Install the npm modules (npm install)
  • Enter the examples directory, open the webwallet.html file
  • Click the Create new wallet button and enter a password

If for some reason the node entered here is down, replace it with your own node or with another public/testnet node.

  • Thanks. Would you also know how to install it into a Meteor app? – Alan Wunsche Feb 7 '16 at 13:55
  • Who manages 104.236.65.136:8545 ? And I assume it's the main net? – Alan Wunsche Feb 7 '16 at 13:58
  • I do see it's at Digital Ocean : whois.urih.com/record/104.236.65.136 – Alan Wunsche Feb 7 '16 at 15:31
  • I don't know, probably one of the authors of the repo? If that works for you then it means that the code works, now you can switch the ip to a well-known mainnet ip or boot a geth node and connect to it. – makevoid Feb 8 '16 at 7:25
  • 1
    @AlanWunsche open the webwallet.html file source, find all (4) the entries of "password =", set it to " password = '' " (empty string) by removing all the calls to prompt() and you should be ok, bare in mind that if somebody obtains the seed he can access the funds directly so you should warn the user to keep the seed safe – makevoid Feb 15 '16 at 1:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.