-
Notifications
You must be signed in to change notification settings - Fork 128
Support hardware wallets #137
Comments
metamask supports ledger and trezor now |
@soundyogi Yea, we're aware of this too. Just need to test it and make any necessary tweaks. Are you saying that it already works now (with the current Drizzle)? |
I am upgrading our dapp to drizzle and the new metamask provider.enable() system. But I succesfully used my ledger via metamask using the old standard web3/metamask provider combo. Of course pure ledger support without metamask is something different, but should be as you said very possible. Sorry for this half-assed input :_D I havent tried to use the ledger with using drizzle only. But will try to test it this week. |
This looks quite helpful but also outdated: there are a few third party libs on npm. I will look into it further this week. |
I've been trying to make Drizzle work purely with Ledger for the past few days but there's issues with Ganache that won't allow clean Ledger integration with Drizzle. I adapted the gist that @soundyogi linked to into try {
const result = yield eth.getAddress("m/44'/60'/0'/0/0")
console.log("I'm inside Drizzle!")
if (result !== null) {
const engine = new ProviderEngine()
const getTransport = () => Transport.create()
const ledger = createLedgerSubprovider(getTransport, {
networkId,
accountsLength: 5
})
console.log(ledger)
engine.addProvider(ledger)
engine.addProvider(new FetchSubprovider({ rpcUrl }))
engine.start()
return new Web3(engine)
}
} catch (error) {
console.log(error)
} The issue comes when a new block arrives in Ganache. Ganache will crash with the following error:
So I'm only able to have the things above working when I initialize Ganache with a really long block time (e.g. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if there is no reply to further comments. |
n/t
Ledger seems to already provide a Web3 provider, so it shouldn't be too hard?
Wallets we would like to support: Ledger, Trezor, Keepkey
The text was updated successfully, but these errors were encountered: