Skip to content

Commit 4731fc4

Browse files
authored
Merge pull request bitcoin#487 from Christewart/patch-2
Specify which 1 byte push op codes are valid
2 parents eb7a787 + 608d5dc commit 4731fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0141.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ If all transactions in a block do not have witness data, the commitment is optio
8383

8484
=== Witness program ===
8585

86-
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".
86+
A <code>scriptPubKey</code> (or <code>redeemScript</code> as defined in BIP16/P2SH) that consists of a select subset of opcodes (<code>OP_0,OP_1,OP_2,...,OP_16</code>) 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".
8787

8888
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:
8989
# 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"'')

0 commit comments

Comments
 (0)