rust-bitcoin / rust-bitcoin/rust-miniscript
Capability of satisfying specific leaf
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 426
- Forks
- 200
- Avg merge
- 7d 17h
- Merged PRs (30d)
- 8
Description
Right now you can only run the satisfier on the entire taptree. With the Iterator being available to iterate and filter on leafs of interest, I would like to be able to satisfy a chosen specific leaf or set of leaves.
We discussed potentially modifying this function: https://github.com/apoelstra/rust-miniscript/blob/b68bf1354af83f2ebe473ef28b09f461f546a804/src/descriptor/tr.rs#L684
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the function near line 684 in src/descriptor/tr.rs and the available Iterator APIs for filtering leaves. Determine how the satisfier currently operates on the full taptree and define the selected-leaf behavior. Done means a caller can satisfy one chosen leaf or a set of filtered leaves, with the relevant behavior covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100