Revised based on the latest codebase:
BIP141: New commitment structure, sigop limits, etc #277
pull jl2012 wants to merge 2 commits into bitcoin:master from jl2012:bip141 changing 4 files +106 −106-
jl2012 commented at 4:53 PM on January 11, 2016: contributor
- jl2012 renamed this:
New commitment structure, sigop limits, etc
BIP141: New commitment structure, sigop limits, etc
on Jan 11, 2016 -
CodeShark commented at 5:26 PM on January 11, 2016: contributor
ACK
- jl2012 force-pushed on Jan 11, 2016
- jl2012 force-pushed on Jan 11, 2016
-
New commitment structure, sigop limits, etc 858a4a70ea
- jl2012 force-pushed on Jan 11, 2016
-
Fix links in BIP142-144. Corrections in BIP142. ae529c3f04
- jl2012 force-pushed on Jan 11, 2016
- jl2012 cross-referenced this on Jan 11, 2016 from issue Fix BIP142: Example script needs PUSH length byte by afk11
-
in bip-0141.mediawiki:None in ae529c3f04
91 | 92 | -The first levels bits of locator, interpreted in little endian, are assumed to be the position in the leaves of the Merkle tree where the witness root hash goes. 93 | +=== Witness program === 94 | 95 | -The coinbase's input's witness must consist of a single byte array, which the size must be a multiple of 32 bytes but not bigger than 32*32 bytes. These are assumed to be the Merkle path to connect the witness root hash to the commitment root hash. Depth of the commitment is determined by the length of the path. If the depth of the tree is 0, the path should be represented by 0x00, and the witness root hash will be same as the commitment root hash. 96 | +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".
afk11 commented at 11:49 PM on January 11, 2016:Anything beyond 17 is two bytes, should it be called version byte?
jl2012 commented at 3:34 AM on January 12, 2016:Only 0-16 are defined. Anything beyond 17 has no special meaning.
luke-jr referenced this in commit 68ac3c777c on Jan 12, 2016luke-jr merged this on Jan 12, 2016luke-jr closed this on Jan 12, 2016luke-jr referenced this in commit 3975a54a1c on Jan 20, 2018
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 18:10 UTC
This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 18:10 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me