This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Trezor Support #6403
Merged
Merged
Trezor Support #6403
Changes from 24 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
1c8329d
Copy modal from keepkey branch and generalize
folsen 298d9d8
Add trezor communication code
folsen 38b4c1d
Extend the basic lib to allow Trezor
folsen f3a902b
Add RPC plumbing needed
folsen aa3f62e
Add logic to query backend for Trezor and display PinMatrix
folsen 847aa76
Change back to paritytech branch
folsen 3de2d0c
Converting spaces to tabs, as it should be
folsen 2e08493
Incorporate correct handling of EIP-155
folsen b5dc34e
Some circular logic here that was incorrect
folsen 5be769a
Resolve issue where not clicking fast enough fails
folsen 2763a2e
Scan after pin entry to make accepting it faster
folsen 5f20d51
Remove ability to cancel pin request
folsen e07c275
Some slight cleanup
folsen 2677d90
Probe for the correct HID Version to determine padding
folsen f578cfe
Move the PinMatrix from Accounts to Application
folsen 32cfa2f
Removing unused dependencies
folsen fc22db3
Mistake in copying over stuff from keepkey branch
folsen ec58a6b
Simplify FormattedMessage
folsen f344bca
Move generated code to external crate
folsen 9255964
Remove ethcore-util dependency
folsen 1a53ddc
Fix broken import in test
folsen bacc06f
Merge branch 'master' into fh-4500-trezor-support
folsen e998189
Merge branch 'master' into fh-4500-trezor-support
folsen 1135ec3
Ignore test that can't be run without trezor device
folsen 2bff086
Fixing grumbles
folsen 1666f78
Fixing UI.
tomusdrw d56aca9
Debugging trezor.
tomusdrw 1a43dd2
Minor styling tweak
folsen 2fe7170
Merge branch 'master' into fh-4500-trezor-support
folsen c5e9997
Make message type into an actual type
folsen 1f5d4f7
Merge branch 'master' into fh-4500-trezor-support
folsen 56bc44d
Split the trezor RPC endpoint
folsen 7ff4c81
Reflect RPC method split in javascript
folsen 7e0853c
Fix bug with pin entry
folsen 31e64c0
Fix deadlock for Ledger
folsen 5463246
Avoid having a USB lock in just listing locked wallets
folsen 66d9f3e
Fix javascript issue (see #6509)
folsen 8f965e8
Replace Mutex with RwLock
folsen 918fce3
Update Ledger test
folsen 3df337d
Fix typo causing faulty signatures (sometimes)
folsen 203e121
*Actually* fix tests
folsen e81ccbc
Update git submodule
folsen bfce1a1
Swap line orders to prevent possible deadlock
folsen c4d14ad
Make setPinMatrixRequest an @action
folsen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may keep the lock for the entire 2s in a worst case. If there is another RPC query to read some other devices it will cause the whole RPC to be blocked.
We should consider running hw wallets RPC methods through cpupool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also change
open_path
to return a handle and the lock guard?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually upon further inspection I'm not entirely clear on what the goal of returning the guard from
open_path
would be, or indeed what that would even mean,open_path
isn't really aware that it's handling a locked item?To clear up the lock "issues" I propose (in a separate PR) that we refactor the whole HW wallet interface, and implement a device-dispatcher and unified trait for all kinds of devices, so adding new devices in the future just means implementing the wire protocol.