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

Trying to switch over the new keepkey library but failing on chrome #156

Closed gesseekur closed 3 years ago

gesseekur commented 4 years ago

Hello,

I am trying to update our library with the new Keepkey library. We were using @keepkey/keepkey.js prior to this. I followed the documentation on your readme and everything was working up to the point,

wallet.getLabel().then((result) => { console.log(result); });

The result returns undefined. But I also noticed this warning in the console:

An attempt to claim a USB device interface has been blocked because it implements a protected interface class.

I think this means that Chrome blocks this class from initiating ? I also tried on firefox and got the error, WebUSB is not available in this browser. We recommend trying Chrome. Is there any way around this ? I could also be doing something completely incorrect so any help is appreciated!

The code is a bit messy right now because it still has the old keepkey integration there, but I am following the exact steps in the readme. The file is here (it is on line 53): https://github.com/MyEtherWallet/MyEtherWallet/blob/devop/update-keepkey/src/wallets/hardware/keepkey/index.js

Thank you!!

mrnerdhair commented 3 years ago

This is pretty old with no activity -- which is our fault, sorry -- but the code that's involved has been changed a lot since this issue was opened, so hopefully it's solved already. If this is still a problem, feel free to open another issue and we'll get you sorted.