Skip to content

BIP-{383,386,389,390}: fix small issues and discrepancies - #2239

Merged
jonatack merged 7 commits into
bitcoin:masterfrom
guggero:descriptors-bugfix
Aug 6, 2026
Merged

BIP-{383,386,389,390}: fix small issues and discrepancies#2239
jonatack merged 7 commits into
bitcoin:masterfrom
guggero:descriptors-bugfix

Conversation

@guggero

@guggero guggero commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Found some small problems and contradictions in the Output Descriptors BIPs while implementing a Golang version.

guggero added 7 commits August 6, 2026 11:01
In BIP380 the capital letter H is explicitly defined as an invalid
indicator for a hardened step. The "Invalid expression" section has
explicit examples prefixed "Invalid hardened indicators" that show
"0H/0H/0H" as being wrong.
A stray space is not allowed inside such an expression.
New BIPs with more allowed expressions within a tr() tree
have been added and are worth mentioning.
The "15 compressed public keys" rule is not very precise and
doesn't mention uncompressed ones.
Core implements this differently as well:
https://github.com/bitcoin/bitcoin/blob/master/src/script/descriptor.cpp#L2425
So we make the definition more precise.
@achow101

achow101 commented Aug 6, 2026

Copy link
Copy Markdown
Member

ACK 19d6e7f

@jonatack jonatack added Proposed BIP modification PR by non-owner to update BIP content Bug fix labels Aug 6, 2026

@jonatack jonatack 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

@jonatack
jonatack merged commit c536a9b into bitcoin:master Aug 6, 2026
4 checks passed
@guggero
guggero deleted the descriptors-bugfix branch August 6, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug fix Proposed BIP modification PR by non-owner to update BIP content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants