While reviewing https://github.com/bitcoin/bitcoin/pull/31247 a while ago I noticed that the mentioned public keys in the PSBT fields of this BIP are quite confusing. This is mostly due to a non-consistent mention of types (plain vs. x-only) and a purpose that is sometimes missing. This PR aims to improve this in the following ways:
- be specific about the purpose of pubkey types in PSBT fields (“plain pubkey” alone doesn’t say a lot, especially if it’s used repeatedly within a field; explicitly call it “aggregate pubkey” or “participant pubkey” if applicable)
- replace all uses of “compressed pubkey” by “plain pubkey” (the only category that should matter is whether the pubkey type is “x-only” or “plain”; in the latter case, it’s obvious from the size of 33 bytes that the key is compressed)
- use consistent word order, e.g. prefer “plain aggregate public key” over “aggregate plain public key”
Another possibility would be to even get rid of the “plain” terminology completely. From the fact that “x-only” is not explicitly mentioned and the size of 33 bytes it should be obvious that this is a plain public key.