Skip to content

Multipath miniscript sanity - #295

Draft
l0rinc wants to merge 3 commits into
masterfrom
l0rinc/multipath-miniscript-sanity
Draft

l0rinc wants to merge 3 commits into
masterfrom
l0rinc/multipath-miniscript-sanity

Conversation

@l0rinc

@l0rinc l0rinc commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Reworks bitcoin/bitcoin#35742 into three focused commits: stable test controls, characterization of the existing duplicate-key bug, then the fix and updated expectations.

Extends coverage to mixed single-path and multipath keys, wildcards, hardened derivation, key origins, nested errors, and sharing keys across branches and Taproot leaves. Adds a wallet test demonstrating that accepted duplicates prevent reload, then verifying that rejected imports preserve the stored descriptors and reloadability.

l0rinc and others added 3 commits September 8, 2026 12:34
Add table-driven descriptor checks for valid multipath Miniscripts
and existing branch-0 duplicate rejection.

Co-authored-by: Yash Bhutwala <[email protected]>
Record that later-branch duplicates are accepted and persisted, leaving
the wallet unable to reload. Keep valid controls and branch-0 rejection
alongside these expectations.

Co-authored-by: Yash Bhutwala <[email protected]>
Branch 0 is validated during Miniscript parsing. Recheck duplicate keys
after expanding the remaining branches and report the concrete expression
that fails. Reject these descriptors before importing any branches so the
wallet remains reloadable.

Co-authored-by: Yash Bhutwala <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant