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

Add global xpubs, and key derivations also for external keys

Public commit record

What the developer wrote

Authored by Salvatore Ingala

73/100 · Adequate
Add global xpubs, and key derivations also for external keys

createPsbt does not create BIP-174 compliant PSBT, as it was
written to quickly create transactions that the Bitcoin app would
accept; therefore, a lot of fields where ignored.

This improves the PSBT creation by adding more info about the
other keys, and filling the global xpubs, and setting the
transaction version to 2.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit updates a test helper script that builds Bitcoin PSBT test transactions. It makes the generated test PSBTs more standards-compliant by adding missing key origin information, global extended public keys, and setting the transaction version to 2. The change only affects test utilities, not the actual Ledger app code that runs on devices or handles real funds.

Recommended action

No security action required. Review as normal test-code maintenance; ensure the updated test fixtures still exercise the intended device-side PSBT validation paths.

Security signals we found

01

Change is confined to test utilities (test_utils/txmaker.py)

02

Adds BIP-174 compliance improvements to test PSBT generation

03

Adds fallback key origin computation for external xpubs in tests

04

Sets transaction version to 2 in generated test transactions

05

No changes to device firmware, signing, or parsing code

Risk score

Why this scored 18/100

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