summaryrefslogtreecommitdiff
path: root/bip-0322.mediawiki
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2022-01-31 18:52:37 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2022-01-31 19:06:52 +0900
commit1b6c85b0b4823ce77ca4123ca52ee7f64925e271 (patch)
tree4671d1c9f569ff15aa86bcec9aeaeb347d2757f1 /bip-0322.mediawiki
parent02de475efc528058bd04a0c4ad31b6422aed5f5f (diff)
bip-322: clarify how the message is serialized
Diffstat (limited to 'bip-0322.mediawiki')
-rw-r--r--bip-0322.mediawiki2
1 files changed, 1 insertions, 1 deletions
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: