Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Update to use Ledger Bridge with chrome.hid #243

Merged
merged 2 commits into from
Jun 9, 2021
Merged

Conversation

bbondy
Copy link
Member

@bbondy bbondy commented Jun 8, 2021

Fix brave/brave-browser#16206

This isn't planned to be a long term solution since we can use native code for this, but we might decide to expose this API to other extensions.

The code to mock the navigator.hid in a way that works in extensions is here:
brave/eth-ledger-bridge-keyring@6db82c1
It basically moves the code from the gh-page and then adapts it to use the adapter HID bridge.

I didn't work on eth-ledger-bridge-keyring tests/linting since this is just temporary for us while the new wallet is being built. I did test things with my ledger device though and it worked.

@bbondy bbondy self-assigned this Jun 8, 2021
Douglashdaniel
Douglashdaniel previously approved these changes Jun 9, 2021
Copy link
Contributor

@Douglashdaniel Douglashdaniel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very Cool! LGTM

Copy link
Member

@onyb onyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just pushed a commit to fix the easy audit errors using npm_config_yes=true npx yarn-audit-fix and ignore the rest in app/scripts/audit.js.

This should make the CI green.

@bbondy
Copy link
Member Author

bbondy commented Jun 9, 2021

Thanks!

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

Successfully merging this pull request may close these issues.

Implement webhid transport for our Crypto Wallets extension to talk to Ledger
3 participants