Skip to content

Commit badaf01

Browse files
committed
bip-0300: Forbid extraneous OP_DRIVECHAIN outputs in M5/M6
1 parent accaee0 commit badaf01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bip-0300.mediawiki

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ Every time a deposit/withdrawal is made, the old CTIP is spent and a new one is
398398

399399
Every M5 is valid, as long as:
400400

401-
* It has at least one OP_DRIVECHAIN output -- this becomes the new CTIP.
401+
* It has exactly one OP_DRIVECHAIN output -- this becomes the new CTIP.
402402
* The new CTIP has '''more''' coins in it, than before.
403403
404404

@@ -412,6 +412,7 @@ M6 is invalid if:
412412
* The first output of M6 is NOT an OP_DRIVECHAIN. (This OP_DRIVECHAIN becomes the new CTIP. In other words: all non-withdrawn coins are paid back to the sidechain.)
413413
* The second output is NOT an OP_RETURN script of exactly 10 bytes, of which 8 bytes are a serialized Bitcoin amount.
414414
* The txn fee of M6 is NOT exactly equal to the amount of the previous bullet point.
415+
* There are additional OP_DRIVECHAIN outputs after the first one.
415416
416417
Else, M6 is valid.
417418

0 commit comments

Comments
 (0)