ui: change title to include number of words
What changed, and why it matters
This commit is a simple user-interface wording change. It replaces on-screen prompts like '1st word' with '1 of 24' during the wallet recovery process. There is no security-relevant code change.
No security action needed. This is a routine UX improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies a single string-formatting expression in the mnemonic recovery workflow. It removes ordinal suffix logic (‘st/nd/rd/th’) and instead displays the current word index and total word count (‘{} of {}’). No logic, validation, cryptography, or memory handling changes.
Changed components
src/rust/bitbox02-rust/src/workflow/mnemonic.rsInspect captured patch +2 / −6
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 46230fe..f1d111c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ customers cannot upgrade their bootloader, its changes are recorded separately.
## Firmware
### [Unreleased]
+- Change title when entering recovery words to `1 of 24`, `2 of 24`, etc.
### 9.23.1
- EVM: add HyperEVM (HYPE) and SONIC (S) to known networks
diff --git a/src/rust/bitbox02-rust/src/workflow/mnemonic.rs b/src/rust/bitbox02-rust/src/workflow/mnemonic.rs
index 6ce340f..6d02d25 100644
--- a/src/rust/bitbox02-rust/src/workflow/mnemonic.rs
+++ b/src/rust/bitbox02-rust/src/workflow/mnemonic.rs
@@ -324,12 +324,7 @@ pub async fn get(
let mut word_idx: usize = 0;
let mut entered_words = vec![zeroize::Zeroizing::new(String::new()); num_words];
while word_idx < num_words {
- let title = match word_idx + 1 {
- n @ 1 | n @ 21 => format!("{}st word", n),
- n @ 2 | n @ 22 => format!("{}nd word", n),
- n @ 3 | n @ 23 => format!("{}rd word", n),
- n => format!("{}th word", n),
- };
+ let title = format!("{} of {}", word_idx + 1, num_words);
// The already entered word will already be filled out (if not empty, i.e. not entered
// before). This happens when one goes back to edit previous words, and also when the user
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.