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

sign_tx/sign_psbt: give a more useful error message for invalid output amounts

Public commit record

What the developer wrote

Authored by Daniel Newton

50/100 · Thin
sign_tx/sign_psbt: give a more useful error message for invalid output amounts
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit improves error handling in Blockstream Jade's transaction signing code. Previously, if the total output amount of a Bitcoin transaction was too large to be valid, the device would trigger an internal assertion failure (JADE_WALLY_VERIFY). Now it returns a clear 'bad parameters' error to the user instead. This is primarily a robustness and user-experience improvement; it may also prevent a potential denial-of-service or confusing error state when signing malformed transactions.

Recommended action

Treat as a low-severity hardening fix. Review whether any other JADE_WALLY_VERIFY calls in signing paths should similarly be converted to explicit error returns to avoid assertion-triggering inputs. No urgent user action required.

Security signals we found

01

Replaces JADE_WALLY_VERIFY assertion with explicit error handling for invalid transaction output amounts

02

Returns controlled CBOR_RPC_BAD_PARAMETERS instead of potentially aborting on malformed input

03

Adds message-load logic to ensure error reply can be sent during anti-exfil signature flow

04

Applies to both PSBT and raw transaction signing paths

Risk score

Why this scored 32/100

Our methodology →
Potential impact 8/30
Exploitability 5/25
Stealth signal 4/15
Affected reach 6/15
Confidence 6/10
Evidence quality 3/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.