Close Menu
Crypto Chain Post
    Trending

    Crypto Payments to California State Agencies Inch Closer to Reality

    June 4, 2025

    Why Bitcoin is a Life Raft Amid Rising US Debt | US Crypto News

    June 4, 2025

    Hong Kong Eyes Crypto Derivatives, Prepares Second Virtual Asset Policy

    June 4, 2025

    Bitcoin Price Watch: Bulls Defend Key Support as Momentum Cools

    June 4, 2025

    Bitcoin Quantum Computing Threat Is Fast Approaching, Experts Say

    June 4, 2025
    Facebook X (Twitter) Instagram TikTok Telegram
    • Privacy Policy
    • Terms of use
    • Advertise
    • Contact
    Wednesday, June 4
    Crypto Chain Post
    Price Index Newsletter
    • Home
    • News
      • Bitcoin
      • Ethereum
      • Altcoin
    • Blockchain
    • Markets
    • NFTs
    • DeFi
    • Web3
    • Analysis
    • Metaverse
    • Resources
      • Price Index
      • Crypto Heatmap
      • Glossary
      • Exchange
      • Economic Calendar
    • More
      • GameFi
      • ICO
      • Legal
      • Security
    Crypto Chain Post
    Home » Hashed Timelock Contract (HTLC)

    Hashed Timelock Contract (HTLC)

    News RoomBy News RoomDecember 30, 2022No Comments3 Mins Read

    Home

    Glossary

    Hashed Timelock Contract (HTLC)

    A hashed timelock contract (HTLC) is an agreement between two parties that requires no trust between two users by offering special features to reduce risk.

    What Is Hashed Timelock Contract (HTLC)?

    A hashed timelock contract (HTLC) is a distinct feature in the form of a time-locked escrow that is mainly used while creating smart contracts which enable the creators to modify the payment channels.

    In basic terms, it is an agreement in which the receipt must be confirmed by the receiver or the beneficiary before a preset date or deadline, and failing to do so will result in the receiver losing the ability to claim the payment. The receiver must acknowledge the payment before the deadline.

    There are two main terms that you should know in a hashed timelock contract:

    1. Timelock – It is a function that limits any transacting from the funds of the contract until the receiver affirms the payment before a pre-decided time. This is enabled using Bitcoin commands. If this is not done, the paying party can claim a refund.
    2. Hashlocks – This is a passphrase to claim the funds. The recipient must input the correct phase to gain access to the funds.

    The hashed timelock contract feature is used for safe transfers through bidirectional and routed channels, the contract functions without any trust from either party.

    How Does the Hashed Timelock Contract Work?

    The hashlocks and timelocks are the most pivotal and important components that come into play while settling the contract.

    Firstly, the paying party generates a code or password phase and hashes the code. This is known as the hashlock phase which is the restricting mechanism. The hash is protected until the final transaction takes place.

    Next, the timelock mechanism is used by setting a set of timelocks to restrict future transactions. One of the timelocks is called a Check Lock Time verify. This sets a base time to release and limit the funds. The next timelock is known as Check Sequence Verify, this timelock keeps a count of the number of locks created to aid with finalizing the transaction.

    Application of Hashed Timelock Contract

    HTLC is mainly used in the Bitcoin Lightning network to allow users to transact through interconnected channels. The main issue that users face in p2p transactions is trust. This is solved by using the Hashed Timelock Contract as it requires no level of trust from either party. This allows two users to transact without being directly connected with one another through a payment channel – a process known as network routing. HTLC enables other users to aid the transaction and the hashlock and timelock prevent other users from impeding the transaction.

    Advantages

    Reduced Risk 

    The main problem that HTLC solves is the risk of transacting. The contract greatly reduces the counterparty risk through hashlock and timelock mechanisms. 

    Atomic Swaps 

    Going by the name, these swaps are smart contracts that remove the need for any intermediaries or exchanges with the help of hashed timelock contracts.

    Reduced Delays 

    With the help of the timelock mechanism, the contracts are settled on a pre-determined deadline which eliminates the chances of a delay in the settlement of the contracts.

    Back to Glossary Index Page

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Add A Comment
    Leave A Reply Cancel Reply

    Top News

    Why Bitcoin is a Life Raft Amid Rising US Debt | US Crypto News

    June 4, 2025

    Hong Kong Eyes Crypto Derivatives, Prepares Second Virtual Asset Policy

    June 4, 2025

    Bitcoin Price Watch: Bulls Defend Key Support as Momentum Cools

    June 4, 2025
    Advertisement
    Demo
    Crypto Chain Post
    • Home
    • Privacy Policy
    • Terms of use
    • Advertise
    • Contact
    © 2025 Crypto Chain Post. All Rights Reserved.

    71-75 Shelton Street, Covent Garden, London United Kingdom, WC2H 9JQ

    Type above and press Enter to search. Press Esc to cancel.