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

Change blindsign flow according to guideline. #248

Merged
merged 5 commits into from
Jul 18, 2024

Conversation

ajinkyaraj-23
Copy link
Collaborator

Remove blindsign button from stax

Checklist

  • App update process has been followed
  • Target branch is develop
  • Application version has been bumped

@ajinkyaraj-23 ajinkyaraj-23 self-assigned this Jul 12, 2024
@ajinkyaraj-23 ajinkyaraj-23 added the app::wallet issues relating to the wallet app label Jul 12, 2024
@ajinkyaraj-23 ajinkyaraj-23 added this to the Flex-upgrade milestone Jul 12, 2024
Comment on lines 106 to 113
// const char *blindsign_msg =
// "Your Ledger cannot decode this transaction. If you sign it, you could be authorizing "
// "malicious actions that can drain your wallet.\n";
// const char *learn_more_msg = '\n Learn More: tinyurl.com/ledger-Tezos';
// char total_blindsign_msg[150]= {'\0'};
// memcpy(total_blindsign_msg, blindsign_msg, sizeof(blindsign_msg));
// memcpy(total_blindsign_msg + sizeof(blindsign_msg), global.error_code, sizeof(global.error_code) );
// memcpy(total_blindsign_msg + sizeof(blindsign_msg) + sizeof(global.error_code), learn_more_msg, sizeof(learn_more_msg));

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
@@ -633,7 +633,7 @@
if (confirm) {
nbgl_useCaseStatus("TRANSACTION\nSIGNED", true, accept_blindsign_cb);
} else {
tz_reject_ui();
tz_reject();

Check warning

Code scanning / CodeQL

Implicit function declaration Warning

Function call implicitly declares 'tz_reject'.
@ajinkyaraj-23 ajinkyaraj-23 linked an issue Jul 15, 2024 that may be closed by this pull request
@ajinkyaraj-23 ajinkyaraj-23 force-pushed the ajinkyaraj-23@remove-blindsign-button branch 3 times, most recently from fd00470 to 392bb9e Compare July 17, 2024 11:55
@ajinkyaraj-23 ajinkyaraj-23 marked this pull request as ready for review July 17, 2024 12:06
@ajinkyaraj-23 ajinkyaraj-23 requested a review from spalmer25 July 17, 2024 12:07
If blindsigning is required, show two warning screens , the 2nd being details about the error.
Standardize the msgs shown in confirm trasaction/rejection screens using macros.
1. test_basic.py - remove blindsigning settings from settings menu
2. test_blindsign_too_deep.py - Remove blindsign enabled section and consolidate two warning screens in one utils function.
3. test_blindsign_too_deep_rejections.py - Address changes due to two warning screens. Note that first warning screen has reverse confirm/reject buttons
4. test_blindsign_too_large.py - Remove blindsign enabled section.
5. test_parsing_errors.py - add the blindsign warning screen. note that the warning screen has reverse confirm/reject buttons.
info.png is deleted on unrelated golden snapshot generations.
@ajinkyaraj-23 ajinkyaraj-23 force-pushed the ajinkyaraj-23@remove-blindsign-button branch from 392bb9e to 52d748e Compare July 17, 2024 13:13
app/src/ui_stream_nbgl.c Outdated Show resolved Hide resolved
app/src/ui_stream_nbgl.c Outdated Show resolved Hide resolved
app/src/ui_stream_nbgl.c Show resolved Hide resolved
tests/integration/touch/test_basic.py Outdated Show resolved Hide resolved
@spalmer25 spalmer25 linked an issue Jul 17, 2024 that may be closed by this pull request
Use standard practice in constructoin of blindsign warning screen 2 msg. 
Update url to Tezos-ledger
@ajinkyaraj-23 ajinkyaraj-23 force-pushed the ajinkyaraj-23@remove-blindsign-button branch from b80dc4b to e3417ef Compare July 17, 2024 14:58
@ajinkyaraj-23 ajinkyaraj-23 merged commit c44150e into main Jul 18, 2024
143 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app::wallet issues relating to the wallet app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Review warning button overridden Blindsign flow change on stax
2 participants