The Lightning Network Explained (Litecoin/Bitcoin)
Franklyn2 HN recommenders · recommended in 2 months, 2017–2018
explainer · intro · 2017–2018 on HN
An 8-minute explainer on the Lightning Network and how it relates to Segwit, Bitcoin and Litecoin. It covers how off-chain payment channels route payments to scale blockchain transactions.
Commenters point to it as a short, high-level overview of how Lightning payment channels work.
Up next
11 mo on HNBehind the Scenes of iOS Security
Black Hat
9 HN recommender · 2016–2026
11 mo on HNWhy Electronic Voting Is Still A Bad Idea
Tom Scott
11 HN recommender · 2020–2026
11 mo on HNBut how does bitcoin actually work?
3Blue1Brown
15 HN recommender · 2017–2024
8 mo on HNDiffie-Hellman Key Exchange
Art of the Problem
9 HN recommender · 2016–2024
7 mo on HNBlackHat USA 2011: SSL And The Future Of Authenticity
Christiaan008
9 HN recommender · 2011–2017
8 mo on HNBlockchains Are a Bad Idea (James Mickens)
HBS Digital Initiative
8 HN recommender · 2018–2023
6 mo on HNLine Goes Up – The Problem With NFTs
Folding Ideas
12 HN recommender · 2022–2026
7 mo on HNTheory and Practice of Cryptography
Google TechTalks
5 HN recommender · 2011–2019
6 mo on HNWhy Electronic Voting is a BAD Idea - Computerphile
Computerphile
7 HN recommender · 2015–2025
5 mo on HNThe Future is a Dead Mall - Decentraland and the Metaverse
Folding Ideas
6 HN recommender · 2023–2025
5 mo on HNBitcoin 2012 London: Mike Hearn
Independent POV
6 HN recommender · 2013–2014
5 mo on HNLibreSSL with Bob Beck
Jason Tubnor
6 HN recommender · 2014–2025
3 comments from Hacker News
Each transaction spending the locked funds bears the signature of the party making the payment. The other party can then provide the counter-signature making the transaction valid on the Bitcoin network. The main security problem to solve is preventing one party from publishing a previous channel state (half-signed transaction) giving themselves more money than they actually have by rights. For example, Alice and Bob might start with a channel giving each of them 5 bitcoin. Then Alice makes two one-bitcoin payments to Bob: A | B ------ 4 | 6 3 | 7 Alice decides she wants to take back her last payment and instead publish the earlier transaction (signed by Bob) giving herself 4 bitcoin rather than the one giving herself 3. This problem is solved with hashed timelock contracts (HTLCs). Without getting too technical, HTLCs make it possible for a party who spots a counterparty attempting to publish an invalid transaction to take all of the money in the channel (i.e., Bob would take all 10 bitcoin). The main idea is that cryptographic hash functions are one-way. If I make a payment contingent on knowing a preimage to a hash value, I can cause the payment to become valid by revealing the preimage. Along with the signature to a transaction, Alice must also give Bob the preimage for the previous transaction before he will accept it. When she does, Bob knows that if Alice tries to play games, he can take all of her money. This video gives a high-level overview: ▶ this video
> partly because these off-chain networks would quickly form large central "hubs" which would obviate many of the benefits of Bitcoin The Lightning Network is open-source and decentralized. It has no "hubs", but rather just peers that route payments to each-other using a payment routing algorithm. Lightning has no counterparty risk, as no one can ever steal your bitcoins and you're always in full control. The best way to describe Lightning is as an write-cache layer. It improves the scalability properties of Bitcoin by many factors, makes micro- and nano- payments a reality, reduces fees to fractions of a cent, and even improves privacy (using a Tor-like onion routing for anonymized payments). ▶ this video link
I would modify that slightly and say Litecoin is back because of the Lightning Network, which benefits greatly from features provided by Segwit, and which itself leverages payment channels backed by multi-sig addresses. While Lightning can be enabled without Segwit, it's far more trustworthy with it, than without it. ▶ this video