Home Lightning Network
Post
Cancel

Lightning Network

LN development and usecase
Bitcoin Layer 2 (L2) - Tech behind

LANG(jezik):
Global (en-us) / Local (sr-latn-ba)
Others (g-translate)

bitcoin-future

QR Link

QR Link

Scaling Issues:

  • Bitcoin base layer and Blockchain architecture in general do not scale.
    In order to remain decentralized enough in the long term, from a governance perspective, it needs robust structure and high redundancy.
    This puts practical constraints on DB to enable many distributed nodes. It also limits the number of transactions per second (TPS), in order to achieve global sync state for consensus. DB size needs to grow at moderate pace in order for many nodes to be able to keep up with storage capacity and internet bandwith.
    Even if Bitcoin 10 TPS were to be somehow miraculously increased by a factor of 10 without losing security, still 100 TPS would change nothing, since for the entire world we need at least 1 million TPS.
  • Blockchain Trilemma /\ (resilience vs efficiency):
    1.Decentralisation, 2.Security, 3.Scalability (No̱ 3 left for next layers).

– One of the most promising Solutions is the so-called Lightning Network.
It works via bidirectional channels between nodes, and needs base transactions for opening, closing, rebalancing and routing. But once set up it can handle large volumes of transactions without the need for regular main net connection.
Those protocols are meant to extend Bitcoin’s functionality up to a point, while maintaining the base layer secure and decentralized (LN 2.0).
– As such it has the potential for over 1 million TPS, just the right number, while keeping the fees low. Still it should be mentioned that this is not necessarily the ultimate fix and still hase some challenges.
– Also worth noting is that it is not currently feasible for every person on the planet to have a fully custodial lightning wallet with its own node. With current transaction throughput we could see each year opening up to 100 000 new channels, relatively slow for global population. Instead, a more realistic approach is to have many distributed custodians.
– In fact every bank could become custodian and a lightning node (distributed and dispersed hub-and-spoke network architecture). On top of that maybe only few percent of the global population will have self custody, with either completely or partially trustless implementation.

– So in the next 20+ years if few billion people, would start using it we could expect around 50 000 nodes with average 100 K users. Of course there would be a small number of ones with million users and also many small ones with few hundreds users - Normal Distribution of banking, as currently there are around 25 000 banks globally. (Mega banks vs Community banks.)
– Also it is expected from big corporations to have their own nodes and channels with vendors for payment, while small companies would use custodian banks. Just like large enterprises have their own accounting sector, while smaller ones hire external service from accounting bureaus.

– For better understanding a simple analogy is when you open a beer tap with bartender and at the end of night it gets settled with finality. In practice request for payment is send from receiver as Lightning Invoice, that can be with defined amount, or empty and left for sender to enter it.
– Another issue that Lighting improves upon is Privacy as transactions are not publicly visible on the chain.
LN also adds support for miliSats a sub Sat (1/1000), with higher decimal precision for microtransactions and streaming payments (Sats symbol).

There are several implementations of the protocol, notably:
-C-lightning developed by Blockstream in C language
-Eclair, french for Lightning, a Scala implementation by ACINQ
-LND (Lightning Network Daemon) node by Lightning Labs in Go

Technical difficulties and solutions:
-finding viable paths -> Pickhardt routing
-privacy leakages -> PTLCs (Point Time Locked Contracts), trampoline routing
-force-closed channel -> solves itself with time

Research report by River (2023) and Analysis Engine

Bitcoin Lightning wallets - Comparison (by darthcoin @substack):
wallets

Self-Custody LN wallets - Test (by AnitaPosch - tested in Africa):
Phoenix, Mutiny, Blixt, Green, Zeus, Wallet of Satoshi(custodial), with conclusion:
Phoenix topped the rankings for its overall performance and reliability, followed by Mutiny for its user-friendliness.

Next is a table with selected ones that are fully mobile wallets.

WalletGithubTeamVidTags
1.Custodial—————-—————
Wallet of SatoshiNot OSDaniel Alexiuc - AustraliaYTeasy, no fees
StrikeNot OSJack Mallers - USYT-
BlinkGaloyNicolas Burtey - El.Sal.YT[StableSats]
2.Non-Custodial—————-—————
PhoenixAcinqPierre-Marie - Paris, FRYT[trust-minimized]
BreezBreezMobileRoy Sheinfeld - IsraelYT-
Blixtblixt-walletHampus Sjöberg - SwedenYT-
ZeusZeusLNEvan Kaloudis - NY, USYT-
3.With On-Chain—————-—————
ElectrumspesmiloThomas Voegtlin - Berlin, DEYT[external node]
BlueWalletBlueWalletNuno Coelho - Barcelona, ESYT[external node]
GreenBlockstreamAdam Back - USYT[external node]
WasabiWalletWasabiMax Hillebrand(DE) - GibraltarYTNo more CoinJoins

Network Topology and graph (distribution of nodes):
graph

– Should the need arise, the process for onboarding users can be increased even more with Channel Factories for scalability. Others optins in development include: sidecar channels, statechains, inherited IDs and also OP_CTV (Check Template Verify) proposition for Covenants (scale beyond), as well as Ark protocol.
Then another possibility are federated nodes like FediMint that are using federation model for governance. Also there is BitSNARK & Grail (Bitcoin Rollups), and Stacks as well.
– In the meantime there is an interesting use case for stableSats (StableCoins alternative), like dollars equivalent on top of Bitcoin network, e.g. for remittances. Particularly useful in the global south where many local currencies are quite unstable with very high inflation. Since Mutiny wallet was canceled another one with similar feature is 10101 (ten-ten-one) finance (UPDATE: it also is shutting down). Also there is Aqua wallet with Liquid Network (federated side-chain).

YT talks to listen:
-Bitcoin’s Lightning Network (Simply Explained)
-What is the Lightning Network? (99Bitcoins)
-What is it? why should I care? & Non-Technical Explained (Andreas Antonopoulos - aantonop)
-Lightning Made Easy & LN with Phoenix (Bitcoin University)
-Scaling Bitcoin with Giacomo, John & Matt (WBD - What Bitcoin Did)

More scientific papers:
-nakamotoinstitute/funding-of-micropayment-channel
-lightning-pool-whitepaper
-MA_EEMCS

Dashboard info:
-mempool.space/lightning
-clarkmoody.com/dashboard
-bitbo.io

Previous Bit posts:
B1. (r)Evolution of Money
B2. Bitcoin future and macro outlook

PS
If you have business or provide services consider to start accepting Bitcoin (circular economy), sticker for print:
(one personal example with prices also denominated in BTC - codis.tech/efcorebulk)
bit-acc
Donation for support: BTC-LN
(also to support the developers: Donation Portal or ili OpenSats)

This post is licensed under CC BY 4.0 by the author.