summaryrefslogtreecommitdiff
path: root/bip-0141.mediawiki
diff options
context:
space:
mode:
authorJohnson Lau <jl2012@users.noreply.github.com>2016-06-10 13:14:25 +0800
committerGitHub <noreply@github.com>2016-06-10 13:14:25 +0800
commit7304edc475a93a4add0320907b2fe61c4f331720 (patch)
tree4e6d307a6a1d5dcd65ade57bfc3de011205906bc /bip-0141.mediawiki
parentd34877f48228d6007825ac3dd947b351a6c01fc0 (diff)
downloadbips-7304edc475a93a4add0320907b2fe61c4f331720.tar.xz
BIP141: clarify size restriction for witness stack
Diffstat (limited to 'bip-0141.mediawiki')
-rw-r--r--bip-0141.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0141.mediawiki b/bip-0141.mediawiki
index 6694a68..f02acf9 100644
--- a/bip-0141.mediawiki
+++ b/bip-0141.mediawiki
@@ -100,7 +100,7 @@ If the version byte is 0, and the witness program is 32 bytes:
If the version byte is 0, but the witness program is neither 20 nor 32 bytes, the script must fail.<ref>For example, a scriptPubKey with OP_0 followed by a 40-byte non-zero data push will fail due to incorrect program size. However, a scriptPubKey with OP_0 followed by a 41-byte non-zero data push will pass, since it is not considered to be a witness program</ref>
-If the version byte is 1 to 16, no further interpretation of the witness program or witness happens, and there is no size restriction for the witness. These versions are reserved for future extensions.<ref>For backward compatibility, for any version byte from 0 to 16, the script must fail if the witness program has a <code>CastToBool</code> value of zero. However, having a hash like this is a successful preimage attack against the hash function, and the risk is negligible.</ref>
+If the version byte is 1 to 16, no further interpretation of the witness program or witness stack happens, and there is no size restriction for the witness stack. These versions are reserved for future extensions.<ref>For backward compatibility, for any version byte from 0 to 16, the script must fail if the witness program has a <code>CastToBool</code> value of zero. However, having a hash like this is a successful preimage attack against the hash function, and the risk is negligible.</ref>
=== Other consensus critical limits ===