Skip to content

Commit f62639a

Browse files
authored
BIP118: key version should be 0x01
1 parent 150ab6f commit f62639a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bip-0118.mediawiki

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ Note that if ''hash_type & 0x40'' is zero, ''SigMsg118(hash_type,ext_flag) == Si
131131
132132
To verify a signature ''sig'' for a BIP 118 public key ''p'':
133133
134-
* If the ''sig'' is 64 bytes long, return ''Verify(p, hash<sub>TapSigHash</sub>(0x00 || SigMsg118(0x00, 1) || SigExt118(0x00, 0x02), sig)'', where ''Verify'' is defined in [[bip-0340.mediawiki|BIP 340]].
135-
* If the ''sig'' is 65 bytes long, return ''sig[64] &ne; 0x00 and Verify(p, hash<sub>TapSighash</sub>(0x00 || SigMsg118(sig[64], 1) || SigExt118(sig[64], 0x02), sig[0:64])''.
134+
* If the ''sig'' is 64 bytes long, return ''Verify(p, hash<sub>TapSigHash</sub>(0x00 || SigMsg118(0x00, 1) || SigExt118(0x00, 0x01), sig)'', where ''Verify'' is defined in [[bip-0340.mediawiki|BIP 340]].
135+
* If the ''sig'' is 65 bytes long, return ''sig[64] &ne; 0x00 and Verify(p, hash<sub>TapSighash</sub>(0x00 || SigMsg118(sig[64], 1) || SigExt118(sig[64], 0x01), sig[0:64])''.
136136
* Otherwise, fail.
137137
138138
The key differences from [[bip-0342.mediawiki|BIP 342]] signature verification are:

0 commit comments

Comments
 (0)