rust-bitcoin / rust-bitcoin/rust-miniscript

How to infer a descriptor

Open
#675 7 comments 0 reactions 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

From what I can tell, to infer a descriptor requires creating an Interpreter, then calling .inferred_descriptor(). However, to build an interpreter, requires a BitcoinKey which is private not to mention the innner module and stack module which are also private. Is it possible to expose some interface to allow inferring a descriptor?

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 src/interpreter/mod.rs, focusing on Interpreter, inferred_descriptor(), BitcoinKey, and the private inner and stack modules mentioned in the issue. Determine what public interface would allow descriptor inference without exposing those internals; done means the supported interface is defined and its behavior is covered by appropriate project tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.