Skip to content

Commit e4e2b7c

Browse files
committed
443: add paragraph on fee management
1 parent ff5703c commit e4e2b7c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

bip-0443.mediawiki

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,18 @@ Note that the ''deduct'' semantic does not allow to check the exact amount of it
129129
a scheme similar to figure 3 or 4 above, amounts should be constrained either with a signature, or with future
130130
introspection opcodes that allow fixing the amount. In lack of that, amounts would be malleable.
131131

132+
=== Paying fees ===
133+
134+
Since the amount-checking semantics of <code>OP_CHECKCONTRACTVERIFY</code> are designed to preserve the entire input
135+
amount across one or more outputs, transaction fees must be paid exogenously. This can be achieved by adding an extra
136+
input to the transaction, by using an anchor output, or with other future mechanisms.
137+
138+
The ''ignore'' amount mode is not a safe mechanism for paying endogenous fees. An output checked with this mode has no
139+
amount constraint, which would allow a miner to claim the entire value of that input. This mode is included for forward
140+
compatibility with potential future soft forks that may introduce other amount-related logic that is compatible with
141+
<code>OP_CHECKCONTRACTVERIFY</code>'s script checks.
142+
143+
132144
== Specification ==
133145

134146
The tapscript opcode <code>OP_SUCCESS187</code> (<code>0xbb</code>) is constrained with new rules to implement

0 commit comments

Comments
 (0)