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

Add blindsigning and summary display #9

Merged
merged 48 commits into from
Oct 23, 2024
Merged

Conversation

ajinkyaraj-23
Copy link

Checklist

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

Add blindsign settings. Allow to blindsign on stax via skip button . On nano after showing few
screens, switch to blindsign mode if blindsign setting is ON.

ajinkyaraj-23 and others added 30 commits August 23, 2024 14:51
…-settings

Make nano home page according to Ledger app boilerplate
Options are "For Large Tx", "ON", "OFF"
Update snapshots for nano
Also reduce `BUFF_LEN` to its smallest possible size so that the tests
continue to pass
Operations:
 - stake
 - unstake
 - finalize_unstake
 - set_delegate_parameters
Check:
 - display
 - complexity
…ing-ops

Remove expert mode for `stake`/`unstake`/`finalize_unstake`
 - Summary of information provided later
…ee to be dual used for swap and summary.

No tests failed and amounts are accurate for both swap and batch transaction.

Co-authored-by: Sébastien Palmer <[email protected]>
…tions, total amount and total fee.

Co-authored-by: Sébastien Palmer <[email protected]>
 - a basic too long operation with many different operations
 - a too long operation with only transactions
 - a too long transaction without fee or amount
…f-screens-displayed-for-review

Limit the number of screens displayed for signing review for Nano
…rning-once

Maximum one expert-mode warning per signing flow
spalmer25 and others added 15 commits September 19, 2024 16:31
…-operation-warning-on-parsing-error

[summary] remove too long operation warning on parsing error
* Simplify blindsigning code and Use nbgl_useCaseReviewStreamingBlindSigningStart for stax

* Extract common ui_stream functions in ui_stream_common for clarity
Remove redundant code

* Add summary signing flow.
It should show warning screens and summary pages
* [blind] add blindsign question to jump to blindsign with blind ON

Otherwise, use the clearsign flow as the option was Large Tx

* [too_many_screen] reduce number of screen for NanoS+ and NanoX to 12
* Add contact information in info

* Swith to large tx mode in BLINDSIGN ON mode if user does not press skip
* [sign-warning] uniform warning between nanos, nanos+ and nanox

* [blind] add warnings before going to blindsign flow
Redundant with test_sign_too_long_operation tests
 - no more limit of screens (even in Blind mode ON)
 - no more warning screens for too many screen
 - large tx option acts like Blind mode OFF

Co-authored-by: Ajinkya <[email protected]>
 - OFF is the default value

Co-authored-by: Ajinkya <[email protected]>
 - change blindsining mode settings from ChoiceList to Switch for stax

Co-authored-by: Ajinkya <[email protected]>
#define EXPERT_MODE 0x01
#define BACK 0x02
static void
expert_mode_toggle()

Check notice

Code scanning / CodeQL

Unused static function Note

Static function expert_mode_toggle is unreachable

static void
cb(tz_ui_cb_type_t cb_type)
blindsign_toggle()

Check notice

Code scanning / CodeQL

Unused static function Note

Static function blindsign_toggle is unreachable
ajinkyaraj-23 and others added 3 commits October 2, 2024 13:26
* [format] add missing header guard to format.h file

 - plus add missing documentation

* [sign] fix assertion for message type prints
@yogh333 yogh333 merged commit 036ffa6 into LedgerHQ:develop Oct 23, 2024
130 of 131 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants