diff --git a/bip-tapscript.mediawiki b/bip-tapscript.mediawiki
index a40cfc8d..87b307ad 100644
--- a/bip-tapscript.mediawiki
+++ b/bip-tapscript.mediawiki
@@ -108,9 +108,9 @@ The one-byte spend_type
has a different value, specificially at bit
As additional pieces of data, added at the end of the input to the ''hashTapSighash'' function:
* tapleaf_hash
(32): the tapleaf hash as defined in bip-taproot
* key_version
(1): a constant value 0x00
representing the current version of public keys in the tapscript signature opcode execution.
-* codeseparator_position
(2): the opcode position of the last executed OP_CODESEPARATOR
before the currently executed signature opcode, with the value in little endian (or 0xffff
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.
+* codeseparator_position
(4): the opcode position of the last executed OP_CODESEPARATOR
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.
-The total number of bytes hashed is at most ''244''['''What is the number of bytes hashed for the signature hash?''' The total size of the input to ''hashTapSighash'' (excluding the initial 64-byte hash tag) can be computed using the following formula: ''211 - is_anyonecanpay * 50 - is_none * 32 + has_annex * 32''.].
+The total number of bytes hashed is at most ''246''['''What is the number of bytes hashed for the signature hash?''' The total size of the input to ''hashTapSighash'' (excluding the initial 64-byte hash tag) can be computed using the following formula: ''213 - is_anyonecanpay * 50 - is_none * 32 + has_annex * 32''.].
In summary, the semantics of the BIP143 sighash types remain unchanged, except the following:
# The exceptions mentioned in bip-taproot.