rust-bitcoin / rust-bitcoin/rust-miniscript

Capability of satisfying specific leaf

Open
#868 2 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.