2

I'm reading about lightning and I have a few questions:

  1. The HTLC contract seems to be different at each new path payment channel is opened (due to a different Hash value that needs to be provided), but from my understatement, the channel opens in an independent and in advance to the payments in that channels, between two parties. How is it possible? Does the HTLC is not written on the blockchain?
    This part confuses me.

  2. Are there are known ways to extend the time of a channel before the predefined period time is over? (without closing and opening a new channel)?

Thanks.

1
  • I've downvoted this question because it is asking about multiple unrelated topics, the questions are unfocused and hard to understand, and I'm even having a hard time to come up with a decent title that gives potential readers a good idea of what it's about. In its current form, this is not useful content for the site. I would recommend that this question's content should be split up into several narrower topics and the original removed.
    – Murch
    Apr 28, 2019 at 16:38

1 Answer 1

3

How is it possible? Does the HTLC is not written on the blockchain?

In the Lightning Network, HTLCs are part of the commitment transactions which are not broadcast to the network. This means that the HTLCs do not go onto the blockchain unless some fraud has occurred or someone is unresponsive.

None of the conditions of a commitment transaction (all of the punishment, timelock, HTLC, etc. stuff) ever go onto the blockchain unless fraud has occurred or one party is unresponsive. In a typical Lightning Channel, the only things that go onto the blockchain are the funding transaction which just pays a standard 2-of-2 multisig address, and the closing transaction, which just spends from a standard 2-of-2 multisig.

Are there are known ways to extend the time of a channel before the predefined period time is over?

Channels do not have a predefined period of time.

Only HTLCs have a predefined timeout time and this cannot be changed without revoking the HTLC and creating a new one.

1
  • HTLCs can also be published onchain for submarine swaps - not purely for fraud
    – arshbot
    Oct 1, 2019 at 13:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.