Explained: Hashed Timelock Contracts in Blockchain Applications

HTLCs can safeguard cross-chain crypto transactions between two parties but there are some vulnerabilities that may need to be taken care of.

Advertisement
Written by Radhika Parashar, Edited by Siddharth Suvarna | Updated: 13 March 2024 11:52 IST
Highlights
  • HTLCs are a way to safeguard funds from third party access
  • HTLCs are still, however, vulnerable to bribery attacks
  • HTLC still largely unfamiliar to the public

Bitcoin and Ethereum are among blockchains that support HTLCs

Photo Credit: Reuters

Cryptocurrencies, the unconventional newbie in the world of finance, is laced with hidden or lesser-known features that when put to use, could safeguard funds against losses. One such feature is called the Hashed Timelock Contract (HTLC). An HTLC is a time-bound smart contract, that allows transfers of crypto funds only after the receiving party punches a secret, pre-decided cryptographic passphrase. Deploying an HTLC while finalising a crypto transfer could ensure that no third party can access the funds – keeping the transaction secure.

In order to complete an HTLC transaction, the receiving party must ensure that they log the passphrase within a pre-decided timeframe. If either of these criteria are not met with, the transaction is not processed.

How are HTLCs Deployed?

HTLCs have two primary components – Hashlock and Timelock.

Advertisement

A hashlock, as per a report by Investopedia, is a cryptographically regenerated version of a public key. The party that decided to send the funds gets to generate hashlocks, which eventually act as private keys. Once generated, hashlocks are uploaded in the form of pre-images that later reveal themselves at the time of the financial transaction.

On the other hand, a timelock is used to add the time element to HTLCs. Each HTLC contract has two timelocks to frame the exact period within which the receiving party need to punch in the cryptographed passphrase to facilitate the transaction.

Where do HTLCs Work?

Bitcoin and Ethereum are among several other blockchains that allow HTLC transactions. These kinds of smart contracts make the overall blockchain industry more interoperable by allowing cross-chain transactions without having to involve a centralised exchange, said a report by Faster Capital.

It is however notable, that HTLCs are subject to some vulnerabilities, out of which bribery attacks sit on top of the heap. In bribery attacks, the attacker can extend a higher transaction fee as a favour to blockchain miners to make them access an HTLC transaction unethically.

Advertisement

Another kind of vulnerability that can affect the successful completion of an HTLC contract is the Malleability attack. Here, the attacker can manage to change the transaction ID of the HTLC causing the transaction to fail all together.

 

Catch the latest from the Consumer Electronics Show on Gadgets 360, at our CES 2026 hub.

Advertisement

Related Stories

Popular Mobile Brands
  1. OnePlus Says India Operations 'Normal' Amid Claims of Internal Collapse
  2. Oppo A6 5G Launched in India With 7,000mAh Battery at This Price
  3. Here's When the Realme P4 Power 5G Will Launch in India
  4. Samsung Galaxy S26 Ultra May Arrive in Six Colourways
  5. Redmi Note 15 Pro Series Might Launch in India With These Storage Options
  6. Moto G67, Moto G77 Specifications Leaked; Could Launch Soon
  7. Scientists Find Clue to High-Temperature Superconductivity in Quantum Materials
  8. iQOO 15R Will Be Launched in India Soon, Company Confirms
  9. Motorola Edge 70 Fusion Leak Reveals Full Specifications Ahead of Launch
  10. Vivo X200T With Zeiss Cameras to Launch in India on This Date
  1. Moto G67, Moto G77 Chipset, Memory and Camera Specifications Leaked, Could Launch Soon
  2. Redmi Turbo 5 Max Charging Details Revealed as Pre-Reservations Begin Ahead of China Launch
  3. OnePlus Says India Operations ‘Normal’ Amid Claims of Internal Dismantling
  4. Samsung Galaxy S26 Ultra May Arrive in Six Colourways, Tipster Claims
  5. Scientists Find Clue to High-Temperature Superconductivity in Quantum Materials
  6. New Dark Matter Simulation Could Change How Galaxies Are Thought to Evolve
  7. SpaceX Adds 29 More Starlink Satellites in Rapid Falcon 9 Launch From Florida
  8. Sony to Cede Control of Bravia TVs to China’s TCL Electronics
  9. Adobe Premiere Integrated With AI-Powered Firefly Platform; New After Effects Features Rolling Out
  10. Samsung Upgrades Bixby With Perplexity-Powered AI Features, Takes Page Out of Apple’s Playbook
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.