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

Enabling Web USB Interface #12

Open
Ahmedie-m opened this issue Apr 30, 2022 · 0 comments
Open

Enabling Web USB Interface #12

Ahmedie-m opened this issue Apr 30, 2022 · 0 comments

Comments

@Ahmedie-m
Copy link

Ahmedie-m commented Apr 30, 2022

Hello, I am trying to build a Chrome extension utilizing the CKB Ledger App and @ledgerhq/hw-transport-webusb (since I wasn't able to use @ledgerhq/hw-transport-node-hid for the Chrome extension) and I have come across an error with the following code snippet:

Code snippet:

import Transport from '@ledgerhq/hw-transport-webusb'
import hwAppCkb from 'hw-app-ckb'

export const getWalletId = async () => {
    const transport = await Transport.create();
    const ckb = new hwAppCkb(transport);
    const result = await ckb.getWalletId();
    return result;
};

Error:

{
    "name": "TransportInterfaceNotAvailable",
    "message": "No WebUSB interface found for your Ledger device. Please upgrade firmware or contact techsupport.",
    "stack": "Error\n    at new CustomError (chrome-extension://njmopdeejhcmieoiapigcmnbckcbggmh/index.js:5125:18)\n    at Function.<anonymous> (chrome-extension://njmopdeejhcmieoiapigcmnbckcbggmh/index.js:5893:21)\n    at step (chrome-extension://njmopdeejhcmieoiapigcmnbckcbggmh/index.js:5738:19)\n    at Object.next (chrome-extension://njmopdeejhcmieoiapigcmnbckcbggmh/index.js:5668:14)\n    at fulfilled (chrome-extension://njmopdeejhcmieoiapigcmnbckcbggmh/index.js:5622:24)"
}

and found out that it is an extra functionality that requires enabling per app: LedgerHQ/ledgerjs#423 (comment)

Is there any possibility of getting such functionality enabled?

Thank you.

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

1 participant