-
Notifications
You must be signed in to change notification settings - Fork 5
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
Try to make a genuine test fail #6
Comments
@darosior should we then change the return type of genuine_check() from
to
? |
Why? When would the function ever return false?
…On Tuesday, May 7th, 2024 at 11:25 AM, pythcoiner ***@***.***> wrote:
***@***.***(https://github.com/darosior) should we then change the return type of genuine_check() from
Result<(), Box<dyn error::Error>>
^^
to
Result<bool, Box<dyn error::Error>>
^^^^
?
—
Reply to this email directly, [view it on GitHub](#6 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AFLK3FYQMLCEZPTNLSKAF2TZBCMY3AVCNFSM6AAAAABHKSVVTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJXHA2TAMBTGM).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
when the device is not genuine, but yeah the function is genuine_check() and not is_genuine() so your way makes sense |
If it's not genuine an error is returned already.
…On Tuesday, May 7th, 2024 at 12:52 PM, pythcoiner ***@***.***> wrote:
when the device is not genuine
—
Reply to this email directly, [view it on GitHub](#6 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AFLK3FYFNYHSGHLCCCGYCDDZBCXANAVCNFSM6AAAAABHKSVVTWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJYGA4DAMJRGM).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. :) If the device fails the check, the Ledger API would return an error (well, i hope, i guess we could test this by messing with the data transmitted) and
query_via_websocket
would propagate this error:ledger_installer/ledger_manager/src/lib.rs
Lines 370 to 375 in 7be54a5
Originally posted by @darosior in #5 (comment)
The text was updated successfully, but these errors were encountered: