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 “plain pubkey” by “compressed pubkey” (the only category that should matter is whether the pubkey type is “x-only” or “plain”)
- use consistent word order, e.g. prefer “compressed aggregate public key” over “aggregate compressed public key”
Another possibility would be to even get rid of the “plain/compressed” 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.