BIP373: Clarify signed-for public key in MuSig2 fields #2374

pull devdavidejesus wants to merge 1 commits into bitcoin:master from devdavidejesus:bip373-signed-for-key changing 1 files +23 −10
  1. devdavidejesus commented at 1:25 AM on November 29, 2026: none

    This PR updates BIP373 to clarify the keydata format of PSBT_IN_MUSIG2_PUB_NONCE and PSBT_IN_MUSIG2_PARTIAL_SIG. The current text is inconsistent: the keydata calls the second key the aggregate public key, while the description says that the key must be the Taproot output key or found in a script, and not the aggregate public key it was derived from (it currently says "participant public key" there, which cannot be the Taproot output key). This wording was introduced in 50e8208 (65daaf2 later added "aggregate" to the PSBT_IN_MUSIG2_PARTIAL_SIG description); the original text used "plain public key". Bitcoin Core's signer (SignMuSig2 in src/script/sign.cpp, from bitcoin/bitcoin#29675) uses the aggregate public key with all tweaks used for the signature applied, and the BIP's own test vectors agree.

    Both fields now explicitly specify the signed-for public key, which may differ from the aggregate public key in PSBT_IN_MUSIG2_PARTICIPANT_PUBKEYS. The clarification defines the signed-for public key as the aggregate public key with all tweaks used for the signature applied, corresponding to the GetPlainPubkey of the final BIP327 KeyAgg Context. It also clarifies that the tapleaf hash must be omitted for Taproot key path spends, and limits the Updater sentence that said all MuSig2 fields should contain the aggregate public key to PSBT_IN_MUSIG2_PARTICIPANT_PUBKEYS. Finally, this update bumps the BIP version to 1.0.1 and adds the corresponding changelog entry. Some earlier changes made after 1.0.0 (for example 529a045, 6ce21f4 and e315654) are not recorded in this changelog; I left that to the author.

  2. BIP373: Clarify signed-for public key in MuSig2 fields
    Clarify that the keydata of PSBT_IN_MUSIG2_PUB_NONCE and
    PSBT_IN_MUSIG2_PARTIAL_SIG contains the signed-for public key (the
    aggregate public key with all tweaks used for the signature applied)
    and align the Updater section with it.
    
    Update the BIP version to 1.0.1 and add the corresponding changelog
    entry.
    53f6452e21
  3. jonatack added the label Proposed BIP modification on Nov 29, 2026
  4. jonatack added the label Pending acceptance on Nov 29, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-03 17:10 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me