Skip to content

Implement MiniscriptKey for each variant of DescriptorPublicKey#938

Merged
apoelstra merged 1 commit into
rust-bitcoin:masterfrom
Velnbur:master
May 2, 2026
Merged

Implement MiniscriptKey for each variant of DescriptorPublicKey#938
apoelstra merged 1 commit into
rust-bitcoin:masterfrom
Velnbur:master

Conversation

@Velnbur

@Velnbur Velnbur commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

This adds ability to specify SinglePub, DescriptorXKey and DescriptorMultiXKey directly in Descriptor without using enum DescriptorPublicKey.

In one of the projects we're using only DescriptorMultiXKey with fixed structure, so matching DescriptorPublicKey is kind of a pain. This PR fixes that

@apoelstra

Copy link
Copy Markdown
Member

Neat! Yeah, good idea. I think for SinglePub you can also implement ToPublicKey.

@apoelstra apoelstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK eeb49eb; successfully ran local tests; can do ToPublicKey in a followup if you like

@Velnbur

Velnbur commented May 2, 2026

Copy link
Copy Markdown
Contributor Author

can do ToPublicKey in a followup if you like

I would prefer doing it in the next PR. I can take care of that if there are no objections, but if you want, I can do it here with the next commit.

@apoelstra apoelstra merged commit a6faf09 into rust-bitcoin:master May 2, 2026
26 checks passed
@apoelstra

Copy link
Copy Markdown
Member

@Velnbur I'd appreciate a new PR! If not, I will probably do it "eventually".

apoelstra added a commit to ElementsProject/elements-miniscript that referenced this pull request Jun 22, 2026
…licKey

2a852f2 Implement MiniscriptKey for each variant of DescriptorPublicKey (Velnbur)

Pull request description:

  The same as rust-bitcoin/rust-miniscript#938 but for elements


ACKs for top commit:
  apoelstra:
    ACK 2a852f2; successfully ran local tests


Tree-SHA512: ddd2e15491eab0e1613543e3378fcd56ca02802af70870885c7be1e8955a45199a33966a31e16121f0449f63628694a32a8d045ae14f3e56c8a9744f7afa7f79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants