Skip to content

Commit

Permalink
bip-322: clarify how the message is serialized
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewoof committed Jan 31, 2022
1 parent 02de475 commit 1b6c85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bip-0322.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 1b6c85b

Please sign in to comment.