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

sign_psbt: add support for additional_info/swap signing

Public commit record

What the developer wrote

Authored by Jon Griffiths

85/100 · Strong
sign_psbt: add support for additional_info/swap signing

As with the sign_tx case, we require and validate additional info for
swap signing. As this is not available in PSBT QR codes, swap signing is
not currently available by QR.

Also cleans up the error handling to ensure none of the new structures
are leaked on failure.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This commit adds Liquid swap signing support for PSBTs in the Blockstream Jade hardware wallet firmware. It also restructures cleanup paths so memory is freed correctly when validation fails. The change is a feature addition with defensive cleanup improvements, not a clear-cut security fix, but it touches code that protects user funds during transaction signing.

Recommended action

Review the new params_additional_info parsing and validate_elements_outputs() integration for correctness, especially around partial transactions and fee-skipping logic. Ensure that passing NULL process/params from QR/USB modes cannot be bypassed by a malicious caller. Verify that the cleanup_tx path correctly frees all newly allocated structures under every error condition.

Security signals we found

01

Feature expansion of transaction signing path handling swap/partial Liquid transactions

02

Refactored error handling and cleanup labels to prevent memory leaks on validation failure

03

QR/USB PSBT entry points explicitly pass NULL for additional_info, limiting swap signing to wired/JSON-RPC-style callers

04

Adds validation of asset summaries and commitments before user confirmation and signing

05

Prior code returned an error for swap PSBT signing; this commit removes that hard block

Risk score

Why this scored 35/100

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