Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #473: ledger: ensure only Bitcoin and Bitcoin Test apps are active
34003f8 ledger: require the app name is Bitcoin or Bitcoin Test (Andrew Chow) d1d0574 Expose app name of ledger devices (João Barbosa) Pull request description: When the user is in an app on the Ledger that is not Bitcoin or Bitcoin Test, we should not be enumerating the device or allowing them to use HWI as unexpected and unsupported behavior may occur. To do this, this PR pulls in (part of) #362 in order to get the current app name. Then it checks that the app name is one of `Bitcoin`, `Bitcoin Test`, or `app` (for the app included in Speculos). For older devices which do not implement this instruction, the name is returned as `None`. Such devices will be enumerated and accessible as previously as we do not want to lock out users using old devices. Closes #158 ACKs for top commit: instagibbs: tACK 34003f8 Tree-SHA512: 3870c3f7e0d5a36345111cf5aba86f993a7b849fea4a8a09f148b80e38b595e5a9f24b13a04b3cff45806018be2c51df37c5e0fdbe9b8b30991dde9c8922f462
- Loading branch information