Consensys / eth-lightwallet

Lightweight JS Wallet for Node and the browser
MIT License
1.47k stars 503 forks source link

Document use with Provider Engine #143

Open thisbejim opened 7 years ago

thisbejim commented 7 years ago

With hooked-web3-provider deprecated it would be awesome to have the examples updated to use provider-engine.

pmarella2 commented 7 years ago

Were you able to find any help regarding this? I am currently looking for some help implementing lightwallet using provider-engine too

svdo commented 7 years ago

Not the answer to your question, but if you want to use ethjs-provider-signer instead of hooked-web3-provider, creating the provider to work with this wallet goes like this:

    let provider = new SignerProvider('http://127.0.0.1:8545', {
      signTransaction: this.keystore.signTransaction.bind(this.keystore),
      accounts: (cb) => cb(null, this.keystore.getAddresses().map((a) => '0x' + a))
    })

Nice and simple :)

BennyM commented 7 years ago

I had seen this issue a while ago, here you see a setup: https://gist.github.com/BennyM/3566b593f04b5ffa42d776d088965224