Skip to content

Commit 2b478b5

Browse files
committed
Merge pull request bitcoin#367 from jl2012/bip141commitment
BIP141: commitment clarification. BIP144: new diagram
2 parents 4cdb002 + ee744ca commit 2b478b5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bip-0141.mediawiki

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ and the coinbase's input's witness must consist of a single 32-byte array for th
7575

7676
If there are more than one scriptPubKey matching the pattern, the one with highest output index is assumed to be the commitment.
7777

78+
If all transactions in a block do not have witness data, the commitment is optional.
79+
7880
=== Witness program ===
7981

8082
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".

bip-0144/witnesstx.png

2.36 KB
Loading

0 commit comments

Comments
 (0)