Hashed Timelock Contract

Application

A Hashed Timelock Contract (HTLC) facilitates conditional transfer of an asset, typically cryptocurrency, requiring a recipient to provide a cryptographic preimage—a secret—to unlock the funds within a defined timeframe. This mechanism is integral to atomic swaps, enabling peer-to-peer exchange of different cryptocurrencies without reliance on centralized intermediaries, mitigating counterparty risk. The hash component ensures the sender commits to a specific secret without revealing it, while the timelock introduces a deadline, returning the funds to the originator if the secret isn’t disclosed. Consequently, HTLCs are foundational for cross-chain transactions and decentralized finance (DeFi) protocols.