Skip to content

Fix API docs for LoadParams::two_path_descriptor method#506

Open
thunderbiscuit wants to merge 1 commit into
bitcoindevkit:masterfrom
thunderbiscuit:docs/two_path_descriptor
Open

Fix API docs for LoadParams::two_path_descriptor method#506
thunderbiscuit wants to merge 1 commit into
bitcoindevkit:masterfrom
thunderbiscuit:docs/two_path_descriptor

Conversation

@thunderbiscuit

@thunderbiscuit thunderbiscuit commented Jun 24, 2026

Copy link
Copy Markdown
Member

This is a follow up PR to #418 and the sister PR to #306.

Read #306 for more information on this, but the gist is that miniscript cannot parse multipath descriptors that use extended private keys. Our constructors to create/load from two_path_descriptors() fail if users provide private keys there.

This PR adds a test for this failure case, and adjusts the API docs to warn users of this constraint.

cc @yukibtc

Changelog notice

None.

Before submitting

@thunderbiscuit thunderbiscuit changed the title Fix API docs for LoadParams::two_path_descriptor method Fix API docs for LoadParams::two_path_descriptor method Jun 24, 2026
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.96%. Comparing base (58fe631) to head (ef02e2b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #506   +/-   ##
=======================================
  Coverage   80.96%   80.96%           
=======================================
  Files          24       24           
  Lines        5489     5489           
  Branches      247      247           
=======================================
  Hits         4444     4444           
  Misses        968      968           
  Partials       77       77           
Flag Coverage Δ
rust 80.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant