Repository navigation
Conversation
The inferred descriptors are incorrect and are rejected by `getdescriptorinfo`. This happens because the inference process does not check that the pubkey is on the curve. Future commits will fix the problem.
Descriptors inferred from scripts with invalid pubkeys were rejected by the parser. Fix by validating pubkeys during the inference process.
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. External sites
ReviewsSee the guideline and AI policy for information on the review process. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. LLM Linter (✨ experimental)Possible places where named args for integral literals may be used (e.g.
2026-12-02 06:57:14 |
This desc will be used calculate the maximum size in AvailableCoins in this series of commits.
InferDescriptor was updated to perform curve point check for any pubkeys in the script. This forced AvailableCoins to perform this curve point check for all txos in the wallet. Use the descriptor provided by the txo to avoid InferDescriptor calls.
This was referenced Dec 3, 2026
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.

InferScriptcreates descriptors that are rejected by the descriptor parsing process when supplied with scripts containing invalid pubkeys. This PR fixes this by checking that pubkeys are on the curve during inference and adds a functional test.Adding this curve point check to InferPubkey slows down AvailableCoins by 100% because it has to infer the descriptor for every txo in the wallet for size estimation. Fix this by creating the txo with the inferred descriptor and using that desc during size estimation; see
wallet_create_txbenchmark results below: