From 4d36f73e7bbcfe2c1afabc863cea660cdf94b518 Mon Sep 17 00:00:00 2001 From: Oli Date: Thu, 9 Apr 2026 12:46:57 +0200 Subject: [PATCH] BIP-0322: add format clarification table This commit adds a table that clarifies what script types are compatible with what signing variant and also makes more clear what the exact format for the signatures of the different variants are. --- bip-0322.mediawiki | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/bip-0322.mediawiki b/bip-0322.mediawiki index fd222fc2..1ac9308b 100644 --- a/bip-0322.mediawiki +++ b/bip-0322.mediawiki @@ -27,6 +27,32 @@ Ultimately no message signing protocol can actually prove control of funds, both This BIP specifies three formats for signing messages: ''legacy'', ''simple'' and ''full''. Additionally, a variant of the ''full'' format can be used to demonstrate control over a set of UTXOs. +{| class="wikitable" +|- style="font-weight:bold;" +! +! Compatible script types +! Signature format +|- +| Legacy +| P2PKH, P2SH-P2WPKH1, P2WPKH1 +| compact, public key recoverable ECDSA signature, base64-encoded +|- +| Simple +| P2WPKH, P2WSH2, P2TR2
+| witness stack, consensus encoded and base64-encoded +|- +| Full +| all +| full to_sign transaction, consensus and base64-encoded +|- +| Full (PoF) +| all +| full to_sign transaction, consensus and base64-encoded +|} + +1: Possible on a technical level but should NOT be used anymore in the context of this BIP.
+2: Excluding time lock scripts. + === Legacy === New proofs should use the new format for all invoice address formats, including P2PKH.