Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout with u2f tranport #48

Open
allemanfredi opened this issue Oct 25, 2019 · 8 comments
Open

timeout with u2f tranport #48

allemanfredi opened this issue Oct 25, 2019 · 8 comments

Comments

@allemanfredi
Copy link

Hi,

I'm trying to integrate hw-app-iota with u2f transport in my app but i receive the following error even if my ledger is connected and iota is running:

Ledger device: Ledger device timeout. Ensure Ledger is plugged in and IOTA app is running

@Wollac
Copy link
Contributor

Wollac commented Oct 25, 2019

There is a an issue with u2f and it is not working reliably at the moment to communicate with the Ledger device; see this for more: LedgerHQ/ledgerjs#306

It looks like Ledger HQ is proposing WebUSB as an alternative. WebUSB has been enabled in the master of the IOTA app and will be included in the next version (X and S) which is currently reviewed by Ledger HQ. If you want to try it out, you can install the development version on your Nano S or Blue (app development is not yet supported on the Nano X) by following the instructions here: https://github.com/IOTA-Ledger/blue-app-iota/blob/master/README.md#development (probably docker should be the easiest).

The transport methods can also be tested here http://iota-ledger.github.io/ledger-app-iota-demos.

Note, that this is only relevant for browser support as the Node.js libraries use HID to communicate with the Ledger and this works flawlessly on the X as well as the S.

@allemanfredi
Copy link
Author

Thank you for your explanation! Unfortunately i would like to use U2F so i have to wait!

@Wollac
Copy link
Contributor

Wollac commented Oct 27, 2019

Honestly, I've stopped closely following the u2f issue some time ago, but there have been already a few improvements by LedgerHQ: "short" calls work again (like getAppVersion should work on Firefox and Chrome)
However, I've no idea if and when all the calls are fixed, so it might be worth to explore other options like @ledgerhq/hw-transport-webusb

@Wollac
Copy link
Contributor

Wollac commented Nov 6, 2019

After having done a bit more research on this issue, it turns out that the fix currently tested by LedgerHQ would require an updated SDK as well as some changes in the app. Since all those changes need to be reviewed by Ledger before the update can be published, this can take rather long.

Alternatively Ledger suggests moving to @ledgerhq/hw-transport-webhid, which is available in the latest Chrome stable release (users still have to activate an experimental flag on chrome://flags/#enable-experimental-web-platform-features). This approach even works with the current Ledger Nano app and firmware.

@allemanfredi
Copy link
Author

allemanfredi commented Nov 6, 2019

Thank you very much! Let's say that as a temporary solution can go! as soon as i try it i'll let you know!

@sdfghdfh345gasfsdfh4545434hrthbfg

Can you elaborate on how to move to ‘@ledgerhq/hw-transport-webhid’ please?

@jafri
Copy link

jafri commented Dec 29, 2019

@Stoinkler its not a real solution for consumers as HID is behind an experimental flag in chrome.

@allemanfredi
Copy link
Author

Are there any news about U2F bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants