How the layers of Lightning Fit Together
Reading
40
20
20
20
70
50
80
25
10
5
15
15
15
15
60+
Discussion Questions
How would an offline vending machine work?
A walk through the layers of Lightning
How does the LN-Penalty mechanism currently leak out of the update layer?
Creating a channel
What factors should be considered before opening a Lightning channel with a peer?
The Update Layer
How would switching to PTLCs affect the update layer?
If LN were to upgrade the update layer, would the network need to end-to-end upgrade?
Why are the second stage HTLC transactions not part of the commitment transaction?
The Transfer Layer
Explain how the timeout mechanism works for in-flight HTLCs?
How is the payment hash sent to the payer?
Can both HTLCs and PTLCs coexist in a channel?
What's are the required parts of invoices?
The Multihop Layer
How can nodes that are not always online prevent loss of funds?
What are the risks of forwarding below-dust payments?
What is the relationship of the revocation keys for multiple subsequent commitment transactions? What would change if revocation keys were independent?
How can you send a payment to a node without getting an invoice? What are the tradeoffs of this payment method?
Why is a grace period added to the HTLC timeout?
What are routing hints and why are they important for private channels? Do they leak privacy?
Diffie–Hellman key exchange
What is a Diffie-Hellman key exchange used for?
How and when do I use HMAC?
What's the difference between a MAC and an HMAC?
Where are HMAC and MAC implemented in lightning and why?
Last updated