Skip to content

Commit 0f30778

Browse files
authored
BIP-174: port public key terminology from BIP 373 (#2085)
The changes are ported from PR 1705 so that the same public key terminology is reflected in BIP 174 as well. Please refer this other PR for more details.
1 parent 95465e0 commit 0f30778

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

bip-0174.mediawiki

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -507,11 +507,11 @@ The currently defined per-input types are defined as follows:
507507
|-
508508
| MuSig2 Participant Public Keys
509509
| <tt>PSBT_IN_MUSIG2_PARTICIPANT_PUBKEYS = 0x1a</tt>
510-
| <33 byte plain aggregate pubkey>
511-
| The MuSig2 aggregate plain public key from the <tt>KeyAgg</tt> algorithm. This key may or may not
510+
| <33 byte aggregate pubkey (compressed)>
511+
| The MuSig2 aggregate public key (compressed) from the <tt>KeyAgg</tt> algorithm. This key may or may not
512512
be in the script directly (as x-only). It may instead be a parent public key from which the public keys in the
513513
script were derived.
514-
| <tt><33 byte compressed pubkey>*</tt>
514+
| <tt><33 byte participant pubkey (compressed)>*</tt>
515515
| A list of the compressed public keys of the participants in the MuSig2 aggregate key in the order
516516
required for aggregation. If sorting was done, then the keys must be in the sorted order.
517517
|
@@ -521,11 +521,11 @@ required for aggregation. If sorting was done, then the keys must be in the sort
521521
|-
522522
| MuSig2 Public Nonce
523523
| <tt>PSBT_IN_MUSIG2_PUB_NONCE = 0x1b</tt>
524-
| <tt><33 byte compressed pubkey> <33 byte plain pubkey> <32 byte hash or omitted></tt>
525-
| The compressed public key of the participant providing this nonce, followed by the plain public
524+
| <tt><33 byte participant pubkey (compressed)> <33 byte aggregate pubkey (compressed)> <32 byte hash or omitted></tt>
525+
| The compressed public key of the participant providing this nonce, followed by the compressed aggregate public
526526
key the participant is providing the nonce for, followed by the BIP 341 tapleaf hash of
527527
the Taproot leaf script that will be signed. If the aggregate key is the taproot internal key or the
528-
taproot output key, then the tapleaf hash must be omitted. The plain public key must be
528+
taproot output key, then the tapleaf hash must be omitted. The compressed participant public key must be
529529
the key found in the script and not the aggregate public key that it was derived from, if it was
530530
derived from an aggregate key.
531531
| <tt><66 byte public nonce></tt>
@@ -537,11 +537,11 @@ derived from an aggregate key.
537537
|-
538538
| MuSig2 Participant Partial Signature
539539
| <tt>PSBT_IN_MUSIG2_PARTIAL_SIG = 0x1c</tt>
540-
| <tt><33 byte compressed pubkey> <33 byte plain pubkey> <32 byte hash or omitted></tt>
540+
| <tt><33 byte participant pubkey (compressed)> <33 byte aggregate pubkey (compressed)> <32 byte hash or omitted></tt>
541541
| The compressed public key of the participant providing this partial signature, followed by the
542-
plain public key the participant is providing the signature for, followed by the BIP 341 tapleaf hash
543-
of the Taproot leaf script that will be signed. If the aggregate key is the taproot internal key or
544-
the taproot output key, then the tapleaf hash must be omitted. Note that the plain public key must
542+
compressed public key the participant is providing the signature for, followed by the BIP 341 tapleaf hash
543+
of the Taproot leaf script that will be signed. If the aggregate key is the Taproot internal key or
544+
the Taproot output key, then the tapleaf hash must be omitted. Note that the compressed participant public key must be
545545
be the key found in the script and not the aggregate public key that it was derived from, if it was
546546
derived from an aggregate key.
547547
| <tt><32 byte partial signature></tt>
@@ -691,11 +691,11 @@ determine which outputs are change outputs and verify that the change is returni
691691
|-
692692
| MuSig2 Participant Public Keys
693693
| <tt>PSBT_OUT_MUSIG2_PARTICIPANT_PUBKEYS = 0x08</tt>
694-
| <33 byte plain aggregate pubkey>
695-
| The MuSig2 aggregate plain public key from the <tt>KeyAgg</tt> algorithm. This key may or may not
694+
| <tt><33 byte aggregate pubkey (compressed)></tt>
695+
| The MuSig2 compressed aggregate public key from the <tt>KeyAgg</tt> algorithm. This key may or may not
696696
be in the script directly. It may instead be a parent public key from which the public keys in the
697697
script were derived.
698-
| <tt><33 byte compressed pubkey>*</tt>
698+
| <tt><33 byte participant pubkey (compressed)>*</tt>
699699
| A list of the compressed public keys of the participants in the MuSig2 aggregate key in the order
700700
required for aggregation. If sorting was done, then the keys must be in the sorted order.
701701
|

0 commit comments

Comments
 (0)