summaryrefslogtreecommitdiff
path: root/bip-0342.mediawiki
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2020-07-28 13:50:50 -0700
committerPieter Wuille <pieter@wuille.net>2020-07-28 13:50:50 -0700
commitb9ea863727c8e53d69afc1a816feed8944cc1e58 (patch)
tree43fe81ce0f20b5cc5b0e036450102a4b955d5d46 /bip-0342.mediawiki
parent5cc0c6fb498efdc35debc17c044ee9ccaa13f0ce (diff)
downloadbips-b9ea863727c8e53d69afc1a816feed8944cc1e58.tar.xz
Use consistent capitalization of tag TapSighash
Diffstat (limited to 'bip-0342.mediawiki')
-rw-r--r--bip-0342.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0342.mediawiki b/bip-0342.mediawiki
index c4af38a..b337ea9 100644
--- a/bip-0342.mediawiki
+++ b/bip-0342.mediawiki
@@ -111,7 +111,7 @@ To validate a signature ''sig'' with public key ''p'':
** ''tapleaf_hash'' (32): the tapleaf hash as defined in [[bip-0341.mediawiki#design|BIP341]]
** ''key_version'' (1): a constant value ''0x00'' representing the current version of public keys in the tapscript signature opcode execution.
** ''codesep_pos'' (4): the opcode position of the last executed <code>OP_CODESEPARATOR</code> before the currently executed signature opcode, with the value in little endian (or ''0xffffffff'' if none executed). The first opcode in a script has a position of 0. A multi-byte push opcode is counted as one opcode, regardless of the size of data being pushed.
-* If the ''sig'' is 64 bytes long, return ''Verify(p, hash<sub>TapSigHash</sub>(0x00 || SigMsg(0x00, 1) || ext), sig)'', where ''Verify'' is defined in [[bip-0340.mediawiki#design|BIP340]].
+* If the ''sig'' is 64 bytes long, return ''Verify(p, hash<sub>TapSighash</sub>(0x00 || SigMsg(0x00, 1) || ext), sig)'', where ''Verify'' is defined in [[bip-0340.mediawiki#design|BIP340]].
* If the ''sig'' is 65 bytes long, return ''sig[64] &ne; 0x00 and Verify(p, hash<sub>TapSighash</sub>(0x00 || SigMsg(sig[64], 1) || ext), sig[0:64])''.
* Otherwise, fail.