ui: be more explicit about number of words displayed
What changed, and why it matters
This commit moves a user-facing message so it appears before every mnemonic display, not just one specific feature. It tells the user how many seed words are about to be shown, helping prevent confusion if someone picked the wrong word count. There is no security vulnerability here—it's a small usability improvement.
No security action needed. Treat as a normal usability refactor.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change refactors a confirmation prompt from the BIP-85 BIP39 handler into the shared show_and_confirm_mnemonic workflow. The prompt now reads “{} words follow” based on words.len() and is shown before any mnemonic is displayed. The old BIP85-specific “{} word mnemonic\nfollows” prompt is removed. This is purely a UI/UX change with no cryptographic or access-control implications.
Changed components
src/rust/bitbox02-rust/src/hww/api/bip85.rssrc/rust/bitbox02-rust/src/workflow/mnemonic.rsInspect captured patch +10 / −9
diff --git a/src/rust/bitbox02-rust/src/hww/api/bip85.rs b/src/rust/bitbox02-rust/src/hww/api/bip85.rs
index b5bf593..3f51aec 100644
--- a/src/rust/bitbox02-rust/src/hww/api/bip85.rs
+++ b/src/rust/bitbox02-rust/src/hww/api/bip85.rs
@@ -121,15 +121,6 @@ async fn process_bip39(hal: &mut impl crate::hal::Hal) -> Result<(), Error> {
})
.await?;
- hal.ui()
- .confirm(&confirm::Params {
- title: "",
- body: &format!("{} word mnemonic\nfollows", num_words),
- accept_is_nextarrow: true,
- ..Default::default()
- })
- .await?;
-
let mnemonic = keystore::bip85_bip39(num_words, index)?;
let words: Vec<&str> = mnemonic.split(' ').collect();
mnemonic::show_and_confirm_mnemonic(hal, &words).await?;
diff --git a/src/rust/bitbox02-rust/src/workflow/mnemonic.rs b/src/rust/bitbox02-rust/src/workflow/mnemonic.rs
index 6ce340f..69a1149 100644
--- a/src/rust/bitbox02-rust/src/workflow/mnemonic.rs
+++ b/src/rust/bitbox02-rust/src/workflow/mnemonic.rs
@@ -111,6 +111,16 @@ pub async fn show_and_confirm_mnemonic(
hal: &mut impl crate::hal::Hal,
words: &[&str],
) -> Result<(), CancelError> {
+ hal.ui()
+ .confirm(&confirm::Params {
+ title: "",
+ body: &format!("{} words follow", words.len()),
+ accept_is_nextarrow: true,
+ ..Default::default()
+ })
+ .await
+ .map_err(|_| CancelError::Cancelled)?;
+
// Part 1) Scroll through words
show_mnemonic(words).await?;
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.