Skip to content

Commit 821fb90

Browse files
chore(bip-0046): less ambiguous message prefix style
by @AdamISZ
1 parent 0a12bf8 commit 821fb90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0046.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ To derive the address from the above calculated public key and timelock, we crea
9999

100100
In order to support signing of certificates, implementors should support signing ASCII messages.
101101

102-
A certificate message can be created by another application external to this standard. It is then prepended with the string `\x18Bitcoin Signed Message:\n` and a byte denoting the length of the certificate message. The whole thing is then signed with the private key of the <tt>derived_key</tt>. This part is identical to the "Sign Message" function which many wallets already implement.
102+
A certificate message can be created by another application external to this standard. It is then prepended with the string `0x18 || "Bitcoin Signed Message:\n"` and a byte denoting the length of the certificate message. The whole thing is then signed with the private key of the <tt>derived_key</tt>. This part is identical to the "Sign Message" function which many wallets already implement.
103103

104104
Almost all wallets implementing this standard can use their already-existing "Sign Message" function to sign the certificate message. As the certificate message itself is always an ASCII string, the wallet may not need to specially implement this section at all but just rely on users copypasting their certificate message into the already-existing "Sign Message" user interface. This works as long as the wallet knows how to use the private key of the timelocked address for signing messages.
105105

0 commit comments

Comments
 (0)