Skip to content

390: clarifications on KEY expression restrictions#1871

Merged
jonatack merged 2 commits intobitcoin:masterfrom
achow101:desc-clarifications
Jun 20, 2025
Merged

390: clarifications on KEY expression restrictions#1871
jonatack merged 2 commits intobitcoin:masterfrom
achow101:desc-clarifications

Conversation

@achow101
Copy link
Member

Clarifies the restrictions on KEY expressions around when child derivation is allowed.

Also added a Requires header to all of the descriptor BIPs since they require reading 380 first.

All of BIPs describing new descriptors require BIP 380
@achow101 achow101 force-pushed the desc-clarifications branch from 6dea471 to 23e78b6 Compare June 18, 2025 22:10
Copy link
Member

@murchandamus murchandamus left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me.

Type: Informational
Created: 2022-07-26
License: BSD-2-Clause
Requires: 380
Copy link
Member

Choose a reason for hiding this comment

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

Checked that 388 (omitted from this change) does not also require 380

@achow101 achow101 force-pushed the desc-clarifications branch from 23e78b6 to c754a4d Compare June 19, 2025 00:13
Copy link
Contributor

@rkrux rkrux left a comment

Choose a reason for hiding this comment

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

The new verbiage is better and mostly not confusing - asked one question.

Comment on lines +62 to +63
the derivation path to be used when deriving from the aggregate public key. <tt>/*</tt> is also
optional. As there is no aggregate private key, only unhardened derivation from the aggregate public
Copy link
Contributor

@rkrux rkrux Jun 19, 2025

Choose a reason for hiding this comment

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

/* is also
optional.

So musig(xpub.../1,xpub.../2)/3/4 will be treated as musig(xpub.../1,xpub.../2)/3/4/*?
If yes, I understand it's being provided to reduce verbosity but one with an explicit /* at the end would get rid of any possibility of a doubt in the mind of a reader imho.

Copy link
Contributor

Choose a reason for hiding this comment

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

So musig(xpub.../1,xpub.../2)/3/4 will be treated as musig(xpub.../1,xpub.../2)/3/4/*?

On second thought, I think this is not what this means, they both will be treated separately.
Sorry I didn't mean to add more confusion.

@jonatack
Copy link
Member

ACK c754a4d

@jonatack jonatack merged commit 1889614 into bitcoin:master Jun 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants