Review and sign transactions from a single secure screen with Ledger Flex™

Discover now

Up your Web3 game

Ledger Academy Quests

  • Test your knowledge
  • Earn POK NFTs
Play now See all quests

Hashed TimeLock Contract (HTLC) Meaning

Sep 19, 2024 | Updated Sep 19, 2024
A Hashed TimeLock Contract (HTLC) is a smart contract that facilitates secure, time-bound asset transfers between two parties, ensuring the exchange only happens when specific conditions are met.

What is a Hashed TimeLock Contract (HTLC)?

A Hashed TimeLock Contract is essentially a type of smart contract that allows for secure, time-bound asset transfers between two parties on separate ledgers or blockchains. 

It ensures that assets are only exchanged once both parties fulfill the contract’s conditions, which mainly revolve around revealing a secret key. HTLC is important because it enables trustless, cross-chain exchanges without relying on intermediaries.

HTLC Lightning Network

In the context of the Lightning Network, HTLCs are critical for enabling fast, small-scale Bitcoin transactions without needing the main blockchain. They allow users to send and receive Bitcoin across interconnected channels securely, without relying on trust between participants.

For example, let’s say Alice wants to send Bitcoin to Carol but has no direct connection. Alice can route her payment through Bob using HTLC, ensuring that Bob can’t intercept the funds and all participants get paid only when the conditions are met.

By setting a time limit, the contract guarantees that if either party doesn’t act in time, the transaction is reversed, protecting everyone involved. 

This makes HTLC a cornerstone of scalable blockchain solutions like the Lightning Network, where fast, secure payments are essential.

Segregated Witness (Segwit)

Segregated Witness, or “SegWit” is an upgrade for the Bitcoin network designed to allow more transactions to fit within each block on the blockchain.

Full definition

Recursive Inscriptions

Recursive inscriptions are the process of extracting or retrieving data from its existing host and using it in new inscriptions.

Full definition

Zero Confirmation Transaction

A zero confirmation transaction is any transaction that has not been recorded or validated on a blockchain.

Full definition