AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Moderate 59 Bitcoin

ui: display full transaction amounts

Public commit record

What the developer wrote

Authored by benma's agent

68/100 · Adequate
ui: display full transaction amounts

Remove lossy ellipsis truncation from Ethereum and swap amounts.

Use rendered font widths to retain compact confirmation screens when
amounts fit, and fall back to separate scrollable review screens when
they do not. Preserve final fee long-touch confirmation without
requiring users to scroll first.

Validate external swap amount strings before presenting them in full
and add a manual long-amount Ethereum transaction fixture.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit changes how the BitBox02 hardware wallet shows large transaction and swap amounts on its small screen. Previously, long amounts were silently cut off with '...', which could hide the true value from the user. Now the device either shrinks the font or shows the full amount on a scrollable screen. The change also adds checks to reject absurdly long externally supplied swap amount strings. The main security benefit is that users can now verify the complete amount they are approving, reducing the chance of being tricked by a truncated value.

Recommended action

Treat this as a security-hardening UX fix. Review that the new `label_fits_width` logic and font choices exactly match the screen real estate on all supported device variants, and verify that the fallback scrollable screens cannot be bypassed or truncated. Confirm that the 200-character limit for swap amounts is consistent with documented UI limits and does not reject legitimate use cases. Consider whether a CVE or advisory is warranted if prior truncation could have materially misled users about transaction values.

Security signals we found

01

Removal of lossy ellipsis truncation for transaction/swap amounts

02

Addition of runtime font-width checks before displaying amounts

03

Fallback to scrollable full-value review screens when amounts overflow

04

Input validation (length and alphanumeric unit) on externally supplied swap amount strings

05

New manual test fixture for long Ethereum amounts

06

Unit tests updated to expect full amounts instead of truncated amounts

Risk score

Why this scored 59/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.