bitcoin-dev
OP_Expire and Coinbase-Like Behavior: Making HTLCs Safer by Letting Transactions Expire Safely
Posted on: November 7, 2023 11:11 UTC
The email provides an analysis of a Hashed Timelock Contract (HTLC) scenario involving parties named Bob and Carol.
It explains that before a specific block number, denoted as block 100, only Carol has the capability to execute an HTLC-success transaction. This is due to the fact that the HTLC contains a timelock condition that prevents Bob from prematurely enforcing an HTLC-timeout transaction, which would be his recourse if he wished to claim the funds before the agreed-upon time. Since the commitment transaction requires both Bob’s and Carol’s signatures, and given that Carol will not participate in any action that undermines her own interests, Bob is unable to alter the situation to his advantage.
The message further clarifies that after block 100, the OP_EXPIRE
operation comes into effect, rendering Carol unable to claim the funds. Essentially, this implies that Carol's window for claiming the funds is limited to the period before block 100, after which she loses the ability to do so. The tone of the email suggests certainty in the mechanics of the HTLC and its protection against a potential attack from Bob as long as Carol acts within the constraints of the timelock.