1
0
mirror of https://github.com/bitcoin/bips.git synced 2024-11-19 01:40:05 +01:00

BIP141: commitment clarification. BIP144: new diagram

This commit is contained in:
jl2012 2016-04-08 23:45:54 +08:00
parent 4cdb00287d
commit ee744caca9
2 changed files with 2 additions and 0 deletions

View File

@ -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 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 === === 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". 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".

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 21 KiB