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

Prevent registering policies with too many internal key expressions

Public commit record

What the developer wrote

Authored by Salvatore Ingala

73/100 · Adequate
Prevent registering policies with too many internal key expressions

Signing would fail for wallet policies with more than
MAX_INTERNAL_KEY_EXPRESSIONS internal key expressions, therefore it
is better to avoiding their registration altogether.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit adds a safety check in Ledger's Bitcoin app so that users cannot register wallet policies that the device would later be unable to sign for. Specifically, it rejects policies containing more than the supported number of internal key expressions. Previously, such policies could be registered but signing would fail later; now registration itself is blocked with a clear error code.

Recommended action

No immediate action required for users; the change is defensive. Developers should ensure MAX_INTERNAL_KEY_EXPRESSIONS is documented and consistent with signing limits, and consider whether similar pre-registration checks are needed for other unsupported policy features.

Security signals we found

01

New error code for unsupported policy registration

02

Validation moved earlier in workflow to prevent registering unusable wallets

03

Counting of internal key expressions across normal and MuSig key expressions

04

Test cases added for descriptor templates exceeding the internal key expression limit

Risk score

Why this scored 45/100

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