Hash Time Lock Contract (HTLC)
Published:
Hash Time Lock Contract (HTLC)
First proposed by Lighting Network, this contract allows two participants (e.g., Alice and Bob) to swap their tokens without trusting each other. It can be instantiated by the following script:
IF
<BKey> CHECKSIGVERIFY
HASH160 <H> EQUAL
ELSE
<AKey> CHECKSIGVERIFY
<ATime> CHECKLOCKTIMEVERIFY
ENDIF