shapeshift / hdwallet

A library for interacting with hardware wallets from JS/TS.
https://hdwallet.shapeshift.now.sh/
MIT License
208 stars 89 forks source link

Electron Support #229

Closed ssdbkey closed 3 years ago

ssdbkey commented 3 years ago

I was about to use this lib for ledger device connection and found a problem. It works in web but not in electron. I'm getting following issue when call pairDevice method.

WebUSBCouldNotPair: Could not pair Ledger: Failed to execute 'requestDevice' on 'USB': Must be handling a user gesture to show a permission request.

So I digged into it and noticed that this lib uses "@ledgerhq/hw-transport-webusb" which is not supported in electron. Did I miss something or is it in progress or future plan?

BitHighlander commented 3 years ago

as of version 1.15.2 we have electron support. see https://github.com/shapeshift/hdwallet/tree/master/packages/hdwallet-keepkey-electron ✔️