Repository navigation
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.