diff options
author | Luke-Jr <luke_github1@dashjr.org> | 2016-04-08 22:03:25 +0000 |
---|---|---|
committer | Luke-Jr <luke_github1@dashjr.org> | 2016-04-08 22:03:25 +0000 |
commit | 2b478b5f0a3d76020c754bcfc88ab307e7d6c9a2 (patch) | |
tree | ac382dc8ddc702a601235d62d92271d658c6eb70 /bip-0141.mediawiki | |
parent | 4cdb00287db2be1e40f87de8ec46c393471f6500 (diff) | |
parent | ee744caca9dce9717b221a60c92f0d0e414db625 (diff) | |
download | bips-2b478b5f0a3d76020c754bcfc88ab307e7d6c9a2.tar.xz |
Merge pull request #367 from jl2012/bip141commitment
BIP141: commitment clarification. BIP144: new diagram
Diffstat (limited to 'bip-0141.mediawiki')
-rw-r--r-- | bip-0141.mediawiki | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bip-0141.mediawiki b/bip-0141.mediawiki index dd17eaa..f9881be 100644 --- a/bip-0141.mediawiki +++ b/bip-0141.mediawiki @@ -75,6 +75,8 @@ and the coinbase's input's witness must consist of a single 32-byte array for th If there are more than one scriptPubKey matching the pattern, the one with highest output index is assumed to be the commitment. +If all transactions in a block do not have witness data, the commitment is optional. + === Witness program === A scriptPubKey (or redeemScript 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". |