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

bitbox02: support BIP388 policy signing

Public commit record

What the developer wrote

Authored by Sjors Provoost

68/100 · Adequate
bitbox02: support BIP388 policy signing

Translate the registered descriptor into the policy script
configuration and use it for transaction inputs and change outputs.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds support for signing Bitcoin transactions with registered wallet policies (BIP388) on the BitBox02 hardware wallet. Previously this feature was rejected with an error. The change translates a registered wallet descriptor into a format the BitBox02 understands and uses it when signing transaction inputs and change outputs. It is a feature addition rather than a fix for a known vulnerability, but it touches security-critical signing logic.

Recommended action

Review the new _bip388_script_config helper (not shown in the diff) for correct descriptor parsing, ensure change-output validation matches the registered policy, and verify that only the intended keypath is used for signing. Consider adding tests for multi-key policies and malicious or malformed descriptors.

Security signals we found

01

Removal of an explicit unsupported-action error for BIP388 policy signing

02

New xpub and fingerprint comparison logic to identify the device's key in a policy

03

New policy script config construction passed to hardware signing routines

04

Change affects how transaction inputs and change outputs are interpreted for signing

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.