From 1b6c85b0b4823ce77ca4123ca52ee7f64925e271 Mon Sep 17 00:00:00 2001
From: Karl-Johan Alm <karljohan-alm@garage.co.jp>
Date: Mon, 31 Jan 2022 18:52:37 +0900
Subject: bip-322: clarify how the message is serialized

---
 bip-0322.mediawiki | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'bip-0322.mediawiki')

diff --git a/bip-0322.mediawiki b/bip-0322.mediawiki
index 9b5afed..ed38440 100644
--- a/bip-0322.mediawiki
+++ b/bip-0322.mediawiki
@@ -61,7 +61,7 @@ The <code>to_spend</code> transaction is:
     vout[0].nValue = 0
     vout[0].scriptPubKey = message_challenge
 
-where <code>message_hash</code> is a BIP340-tagged hash of the message, i.e. sha256_tag(m), where tag = <code>BIP0322-signed-message</code>, and <code>message_challenge</code> is the to be proven (public) key script.
+where <code>message_hash</code> is a BIP340-tagged hash of the message, i.e. sha256_tag(m), where tag = <code>BIP0322-signed-message</code> and <code>m</code> is the message as is without length prefix or null terminator, and <code>message_challenge</code> is the to be proven (public) key script.
 
 The <code>to_sign</code> transaction is:
 
-- 
cgit v1.2.3

