Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: cygan on June 06, 2023, 10:23:38 AM



Title: [INFO - DISCUSSION] What is a Point Time Lock Contract (PTLC)?
Post by: cygan on June 06, 2023, 10:23:38 AM
this thread is intended to be a discussion around ptlcs which are an upgrade to the existing payment mechanism in the lightning network called 'hash time locked contracts (htlcs)'
simply put, this contract enables trustless, atomic routing of payments on the network by guaranteeing that the sender agrees to send money to the recipient only if the recipient reveals a secret that has generated a specific hash. if the recipient does not reveal the secret, the sender can get his coins back after a certain time. since the schoor upgrade the implementation of ptlcs became possible.

to make it easier to see and understand, here are 4 slides that explain the whole process very well:

https://talkimg.com/images/2023/06/06/wYpUz.jpeg https://talkimg.com/images/2023/06/06/wYDT2.jpeg
https://talkimg.com/images/2023/06/06/wYO1c.jpeg https://talkimg.com/images/2023/06/06/wYWeP.jpeg



Title: Re: [INFO - DISCUSSION] What is a Point Time Lock Contract (PTLC)?
Post by: NotATether on June 06, 2023, 10:34:21 AM
Great infographic, but you might want to post the banners for Adaptor Signatures and Wormhole Attack so that people have a greater chance at understanding of what exactly is at play here. Maybe even link the infographic for HLTCs as well for newbies to cross-reference.

Do you have an idea of when this stuff is hitting the Lightning Network standards officially? or maybe when LN clients will decide to implement it?


Title: Re: [INFO - DISCUSSION] What is a Point Time Lock Contract (PTLC)?
Post by: cygan on June 07, 2023, 09:49:38 AM
@NotATether
as you wished here are 4 more slides about the topic you mentioned 'wormhole attack' also the slides for the 'hashed timelock contracts (htlc)' to see the difference to ptlc i have added as well :)

more information on the two topics in question can be found here: Wormhole Attack (https://www.sciencedirect.com/topics/computer-science/wormhole-attack) & Hashed Timelock Contracts (https://docs.lightning.engineering/the-lightning-network/multihop-payments/hash-time-lock-contract-htlc)


https://www.talkimg.com/images/2023/06/07/wJ0fb.jpeg https://www.talkimg.com/images/2023/06/07/wJlKv.jpeg
https://www.talkimg.com/images/2023/06/07/wV2HH.jpeg https://www.talkimg.com/images/2023/06/07/wVUIg.jpeg


https://www.talkimg.com/images/2023/06/07/wVdad.jpeg https://www.talkimg.com/images/2023/06/07/wVuT5.jpeg
https://www.talkimg.com/images/2023/06/07/wVwLz.jpeg https://www.talkimg.com/images/2023/06/07/wVAq2.jpeg