summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke-Jr <luke_github1@dashjr.org>2016-06-04 19:24:08 +0000
committerLuke-Jr <luke_github1@dashjr.org>2016-06-04 19:24:08 +0000
commita57a7c62f43a95fe3bca6780c5a8eba7b24b06a7 (patch)
tree12a0c5e10a6c768bfca0080b0a95184d5e143632
parentc917abe394753b5111f069fd7be86ca77c032acb (diff)
parentd1b52cb198066d4e515e8a50fc3928c5397c3d9b (diff)
downloadbips-a57a7c62f43a95fe3bca6780c5a8eba7b24b06a7.tar.xz
Merge pull request #398 from jl2012/patch-20
BIP141: extend max witness program size to 40 bytes
-rw-r--r--bip-0141.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0141.mediawiki b/bip-0141.mediawiki
index b8f686c..ed025ac 100644
--- a/bip-0141.mediawiki
+++ b/bip-0141.mediawiki
@@ -79,7 +79,7 @@ If all transactions in a block do not have witness data, the commitment is optio
=== Witness program ===
-A <code>scriptPubKey</code> (or <code>redeemScript</code> as defined in BIP16/P2SH) that consists of a 1-byte push opcode (for 0 to 16) followed by a data push between 2 and 32 bytes gets a new special meaning. The value of the first push is called the "version byte". The following byte vector pushed is called the "witness program".
+A <code>scriptPubKey</code> (or <code>redeemScript</code> as defined in BIP16/P2SH) that consists of a 1-byte push opcode (for 0 to 16) followed by a data push between 2 and 40 bytes gets a new special meaning. The value of the first push is called the "version byte". The following byte vector pushed is called the "witness program".
There are two cases in which witness validation logic are triggered. Each case determines the location of the witness version byte and program, as well as the form of the scriptSig:
# Triggered by a <code>scriptPubKey</code> that is exactly a push of a version byte, plus a push of a witness program. The scriptSig must be exactly empty or validation fails. (''"native witness program"'')