Skip to content

Commit 1b6c85b

Browse files
committed
bip-322: clarify how the message is serialized
1 parent 02de475 commit 1b6c85b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0322.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The <code>to_spend</code> transaction is:
6161
vout[0].nValue = 0
6262
vout[0].scriptPubKey = message_challenge
6363
64-
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.
64+
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.
6565

6666
The <code>to_sign</code> transaction is:
6767

0 commit comments

Comments
 (0)