Author: Johnson Lau 2016-08-17 10:00:37
Published on: 2016-08-17T10:00:37+00:00
On July 20, 2016, Sean Bowe requested feedback for Hash Time-Locked Contract (HTLC) transactions in Bitcoin. These scripts allow payment for the preimage of a hash, with CSV/CLTV being used to recover funds if the other party is uncooperative. However, because HTLCs hash the top item on the stack, scriptSig's that satisfy them are malleable. Peter Todd noted this issue and stated that it can be resolved by using one of two scripts. Both scripts are compatible with Todd's proposal for fixing the OP_IF/NOTIF malleability in segwit ("MINIMALIF"). The overall witness size is the same for these scripts as they were for Luke Dashjr's original script, although the new ones are one byte larger if MINIMALIF is not enforced. It should be noted that the OP_DROP after TIMEOUTOP is missing in Luke's script.
Updated on: 2023-05-19T23:48:25.783882+00:00