|
| 1 | +<pre> |
| 2 | + BIP: 328 |
| 3 | + Layer: Applications |
| 4 | + Title: Derivation Scheme for MuSig2 Aggregate Keys |
| 5 | + Author: Ava Chow < [email protected]> |
| 6 | + Comments-Summary: No comments yet. |
| 7 | + Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-0328 |
| 8 | + Status: Draft |
| 9 | + Type: Informational |
| 10 | + Created: 2024-01-15 |
| 11 | + License: CC0-1.0 |
| 12 | +</pre> |
| 13 | + |
| 14 | +==Abstract== |
| 15 | + |
| 16 | +This document specifies how BIP 32 extended public keys can be constructed from a BIP 327 MuSig2 |
| 17 | +aggregate public key and how such keys should be used for key derivation. |
| 18 | + |
| 19 | +==Copyright== |
| 20 | + |
| 21 | +This BIP is licensed under the Creative Commons CC0 1.0 Universal license. |
| 22 | + |
| 23 | +==Motivation== |
| 24 | + |
| 25 | +Multiple signers can create a single aggregate public key with MuSig2 that is indistinguishable |
| 26 | +from a random public key. The cosigners need a method for generating additional aggregate pubkeys |
| 27 | +to follow the best practice of using a new address for every payment. |
| 28 | + |
| 29 | +The obvious method is for the cosigners to generate multiple public keys and produce a |
| 30 | +new aggregate pubkey every time one is needed. This is similar to how multisig using Bitcoin script |
| 31 | +works where all of the cosigners share their extended public keys and do derivation to produce |
| 32 | +the multisig script. The same could be done with MuSig2 and instead of producing a multisig script, |
| 33 | +the result would be a MuSig2 aggregate pubkey. |
| 34 | + |
| 35 | +However, it is much simpler to be able to derive from a single extended public key instead of having |
| 36 | +to derive from many extended public keys and aggregate them. As MuSig2 produces a normal looking |
| 37 | +public key, the aggregate public can be used in this way. This reduces the storage and computation |
| 38 | +requirements for generating new aggregate pubkeys. |
| 39 | + |
| 40 | +==Specification== |
| 41 | + |
| 42 | +A synthetic xpub can be created from a BIP 327 MuSig2 plain aggregate public key by setting |
| 43 | +the depth to 0, the child number to 0, and attaching a chaincode with the byte string |
| 44 | +<tt>868087ca02a6f974c4598924c36b57762d32cb45717167e300622c7167e38965</tt><ref>'''Where does this |
| 45 | +constant chaincode come from?''' It is the SHA256 of the text <tt>MuSig2MuSig2MuSig2</tt></ref>. |
| 46 | +This fixed chaincode should be used by all such synthetic xpubs following this specification. |
| 47 | +Unhardened child public keys can be derived from the synthetic xpub as with any other xpub. Since |
| 48 | +the aggregate public key is all that is necessary to produce the synthetic xpub, any aggregate |
| 49 | +public key that will be used in this way shares the same privacy concerns as typical xpubs. |
| 50 | + |
| 51 | +Furthermore, as there is no aggregate private key, only unhardened derivation from the aggregate |
| 52 | +public key is possible. |
| 53 | + |
| 54 | +When signing, all signers must compute the tweaks used in the BIP 32 derivation for the child key |
| 55 | +being signed for. The I<sub>L</sub> value computed in ''CKDpub'' is the tweak used at each |
| 56 | +derivation step. These are provided in the session context, each with a tweak mode of plain |
| 57 | +(''is_xonly_t = false''). When the ''Sign'' algorithm is used, the tweaks will be applied to the |
| 58 | +partial signatures. |
| 59 | + |
| 60 | +==Test Vectors== |
| 61 | + |
| 62 | +TBD |
| 63 | + |
| 64 | +==Backwards Compatibility== |
| 65 | + |
| 66 | +Once a synthetic xpub is created, it is fully backwards compatible with BIP 32 - only unhardened |
| 67 | +derivation can be done, and the signers will be able to produce a signature for any derived children. |
| 68 | + |
| 69 | +==Rationale== |
| 70 | + |
| 71 | +<references/> |
| 72 | + |
| 73 | +==Reference Implementation== |
| 74 | + |
| 75 | +TBD |
| 76 | + |
| 77 | +==Acknowledgements== |
| 78 | + |
| 79 | +Thanks to Pieter Wuille, Andrew Poelstra, Sanket Kanjalkar, Salvatore Ingala, and all others who |
| 80 | +participated in discussions on this topic. |
0 commit comments