Merge pull request #594 from LedgerHQ/small-screen-registration-fix
What changed, and why it matters
This commit shortens an on-screen label from 'Primary spending path' to 'Primary path' on two Ledger device models (Nano S+ and Nano X) because the longer text was being cut off during wallet registration. It is a user-interface fix to prevent a truncated display; it does not change how transactions are signed or how keys are handled.
No security action required. Treat as a normal UI/usability fix.
Security signals we found
UI label truncation fix only
No changes to signing, key derivation, or protocol parsing
Changelog explicitly frames change as a display fix, not a security fix
Evidence from the diff
In src/ui/display_nbgl.c, the label shown for the first Taproot key path during wallet policy registration is now conditional: ‘Primary spending path’ on wallet-sized screens and ‘Primary path’ on smaller screens. The change is accompanied by updated UI test snapshots and a changelog entry describing it as a fix for a truncated label. No cryptographic, parsing, or authorization logic is modified.
Changed components
src/ui/display_nbgl.cNano S+ wallet registration UINano X wallet registration UIInspect captured patch +15 / −3
### CHANGELOG.md
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Dates are in `dd-mm-yyyy` format.
+## [2.X.X] - XX-XX-XXXX
+
+### Fixed
+
+- Nano S+ and Nano X: fix truncated label for the clear-text primary spending path on taproot during registration.
+
## [2.6.0] - 12-11-2026
### Added
### src/ui/display_nbgl.c
@@ -535,7 +535,12 @@ void ui_display_register_wallet_policy_flow(void) {
if (n == 1) {
label = "Spending policy";
} else if (i == 0) {
+#ifdef SCREEN_SIZE_WALLET
label = "Primary spending path";
+#else
+ // Too long to fit on one line on small screens
+ label = "Primary path";
+#endif
} else {
snprintf(path_labels[i], sizeof(path_labels[i]), "Spending path #%u", (unsigned) i);
label = path_labels[i];
### tests/snapshots/nanosp/test_register_wallet_tr_script_multi_leaf_0_0/00002.png
[binary or diff unavailable]
### tests/snapshots/nanosp/test_register_wallet_tr_script_pk_0_0/00002.png
[binary or diff unavailable]
### tests/snapshots/nanosp/test_register_wallet_tr_script_sortedmulti_0_0/00002.png
[binary or diff unavailable]
### tests/snapshots/nanosp/test_register_wallet_tr_with_nums_keypath_0_0/00002.png
[binary or diff unavailable]
### tests/snapshots/nanox/test_register_wallet_tr_script_multi_leaf_0_0/00002.png
[binary or diff unavailable]
### tests/snapshots/nanox/test_register_wallet_tr_script_pk_0_0/00002.png
[binary or diff unavailable]
### tests/snapshots/nanox/test_register_wallet_tr_script_sortedmulti_0_0/00002.png
[binary or diff unavailable]
### tests/snapshots/nanox/test_register_wallet_tr_with_nums_keypath_0_0/00002.png
[binary or diff unavailable]
### tests/test_register_wallet.py
@@ -647,9 +647,10 @@ def test_register_wallet_tr_script_sortedmulti(navigator: Navigator, firmware: F
def test_register_wallet_tr_script_multi_leaf(navigator: Navigator, firmware: Firmware, client:
RaggerClient, test_name: str, speculos_globals):
- # A taproot with a two-leaf script tree, so the cleartext renders MORE THAN TWO
- # spending paths: the key path ("Primary spending path") plus one "Spending path #N"
- # per leaf. Exercises the numbered multi-path layout (Primary + #1 + #2).
+ # A taproot with a two-leaf script tree, so the cleartext renders MORE THAN TWO spending paths:
+ # - the key path ("Primary spending path" or "Primary path");
+ # - plus one "Spending path #N" per leaf.
+ # Exercises the numbered multi-path layout (Primary + #1 + #2).
run_register_test(navigator, client, speculos_globals, WalletPolicy(
name="Taproot key or one of two script keys",
descriptor_template="tr(@0/**,{pk(@1/**),pk(@2/**)})",Why this scored 19/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.