Author: Peter Todd 2016-08-09 00:46:33
Published on: 2016-08-09T00:46:33+00:00
Luke Dashjr, Peter Todd and Sean Bowe discussed Hash Time-Locked Contract (HTLC) transactions in Bitcoin on bitcoin-dev mailing list. HTLC transactions allow payment for the preimage of a hash with CSV/CLTV used to recover funds if the other party is not cooperative. The script takes a general form of [HASHOP] OP_EQUAL OP_IF ... OP_ELSE ... [TIMEOUTOP] OP_DROP ... OP_ENDIF OP_CHECKSIG. However, since the top item on the stack is hashed, scriptSig's that satisfy HTLC's are malleable. Luke Dashjr proposed using OP_SIZE to overcome this issue and Peter Todd applauded his idea as brilliant.
Updated on: 2023-06-11T19:09:40.354275+00:00