Knoqnoq Forum: Everything You Want to Discuss, Most Discussed in India
Search
Reply: 3

What is a Hash Time Lock Contract (HTLC)?

[Copy link]

28

Threads

18

Posts

292

Credits

Intermediate member

Rank: 3Rank: 3

Credits
292
Post time 27-10-2023 11:53:20 | Show all posts |Read mode
A Hash Time Lock Contract (HTLC) is a cryptographic method used to enable trustless asset transactions across different blockchains. For example, a transaction between my BTC and your ETH can be achieved using a hash lock to ensure the atomicity of the trade.

The principle behind it is roughly as follows: User A generates a random number 's' and calculates the hash value of this random number, 'h = hash(s),' which is then sent to User B. A and B lock their respective assets in a smart contract. A publicly reveals 's' to claim the assets locked by B, and B also acquires 's' to claim the assets locked by A. If a predefined time limit is exceeded, and A fails to reveal 's,' the assets locked in the smart contract will automatically be refunded to both parties.
Reply

Use magic Report

27

Threads

20

Posts

151

Credits

registered member

Rank: 2

Credits
151
Post time 27-10-2023 13:28:57 | Show all posts
I don't quite understand.
Reply

Use magic Report

104

Threads

1969

Posts

7723

Credits

Forum Veteran

Rank: 8Rank: 8

Credits
7723
Post time 27-10-2023 22:13:07 | Show all posts
I'll learn more about it.
Reply

Use magic Report

58

Threads

1180

Posts

4469

Credits

Forum Veteran

Rank: 8Rank: 8

Credits
4469
Post time 28-10-2023 06:55:26 | Show all posts
Trust is still important.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Quick Reply To Top Return to the list