Finance:Lightning Network
The Lightning Network (LN) is a "layer 2" payment protocol built on the Bitcoin blockchain and those of other cryptocurrencies.[1] It is intended to enable fast transactions among participating nodes (independently run members of the network) and has been proposed as a solution to the bitcoin scalability problem.[2][3] It is a peer-to-peer system for making micropayments of cryptocurrency through a network of bidirectional payment channels, without delegating custody of funds.[4]
Transacting parties use the Lightning Network by opening a payment channel and transferring (committing) funds to the relevant layer-1 blockchain (e.g. Bitcoin) under a smart contract. The parties then make any number of off-chain Lightning Network transactions that update the tentative distribution of the channel's funds, without broadcasting to the blockchain. Whenever the parties have finished their transaction session, they close the payment channel, and the smart contract distributes the committed funds according to the transaction record.[5]
To initiate closing, one node first broadcasts the current state of the transaction record to the network, including a proposed settlement, a distribution of the committed funds. If both parties confirm the proposal, the funds are immediately paid on-chain. The other option is uncooperative closure, for example if one node has dropped from the network, or if it is broadcasting an incorrect (possibly fraudulent) transaction state. In this case settlement is delayed during a dispute period, when nodes may contest the proposal. If the second node broadcasts a more up-to-date timestamped distribution, including some transactions omitted by the first proposal, then all committed funds are transferred to the second node: this punitive breach remedy transaction thwarts attempts to defraud the other node by broadcasting out-of-date transactions.
History
Joseph Poon and Thaddeus Dryja published a Lightning Network white paper in February 2015.[6][non-primary source needed]
2019 Bitcoin Lightning Torch
On January 19, 2019, pseudonymous Twitter user hodlonaut began a game-like promotional test of the Lightning Network by sending 100,000 satoshis (0.001 bitcoin) to a trusted recipient where each recipient added 10,000 satoshis ($0.34 at the time) to send to the next trusted recipient. The "lightning torch" payment reached notable personalities including Twitter CEO Jack Dorsey, Litecoin Creator Charlie Lee, Lightning Labs CEO Elizabeth Stark, and Binance CEO "CZ" Changpeng Zhao, among others.[7][8]
Design
File:Lightning Network Explained.webm
Andreas Antonopoulos calls the Lightning Network a second layer routing network.[9] The payment channels allow participants to transfer money to each other without having to make all their transactions public on the blockchain.[10][11] This is secured by penalizing uncooperative participants. When opening a channel, participants must commit an amount on the blockchain (a funding transaction).[12] Time-based script extensions like CheckSequenceVerify and CheckLockTimeVerify make the penalties possible.
Implementations
Lightning operates under the BOLT (Basis of Lightning Technology) standard specification.[13] Its four major implementations are: Lightning Network Daemon, CoreLightning, Eclair, and Lightning Dev Kit.[14]
Benefits
The Lightning Network claims to provide several advantages over on-chain transactions:
- Granularity: According to Andreas Antonopoulos, some implementations of the Lightning Network allow for payments that are smaller than a satoshi, the smallest unit on the base layer of bitcoin.[9]
- Privacy: The details of individual lightning network payments are not publicly recorded on the blockchain.[15][unreliable source?] Lightning network payments may be routed through many sequential channels where each node operator will be able to see payments across their channels, but they will not be able to see the source nor destination of those funds if they are non-adjacent.[9]
- Speed: Settlement time for lightning network transactions is under a minute and can occur in milliseconds.[9] Confirmation time on the bitcoin blockchain, for comparison, occurs every ten minutes, on average.
- Transaction throughput: There are no fundamental limits to the amount of payments per second that can occur under the protocol. The amount of transactions are only limited by the capacity and speed of each node.[9]
Limitations
The Lightning Network is made up of bidirectional payment channels between two nodes which combined create smart contracts. If at any time either party drops the channel, the channel will close and be settled on the blockchain.[16] The on-chain transactions required to open and close lightning channels limit the scaleability of the lightning network. This can be mitigated if multiple users that trust each other share a lightning node.[17] Poon Dryja channels are typically used for smaller amounts because they require that keys be online. Secure operation of a high volume lightning node requires security mechanisms like a validating lightning signer or frequent swaps with cold storage. [18]
Lightning Network's dispute mechanism requires all users to watch the blockchain constantly for fraud. This vigilance can be outsourced to watchtower nodes, trusted providers who are paid to monitor for fraud.
A period of 24 hours is allotted to create a bidirectional channel after receiving a request.
Routing
In the event that a bi-directional payment channel is no longer open between the transacting parties, the payment must be routed through network intermediaries via an onion routing technique similar to Tor. This requires that the sender and receiver of the payment have open channels with enough established peer nodes to find a path for the payment.[19]
The original whitepaper on routing suggests that "eventually, with optimizations, the network will look a lot like Tier-1 ISPs".
Use cases
Laszlo Hanyecz, famous for paying 10,000 BTC for two pizzas in 2010, bought two more pizzas in 2018 via Lightning Network for 0.00649 BTC.[20]
Lightning Internetwork
The lightning network based on Poon Dryja payment channels is interoperable with other payment networks that support HTLCs which results in a multi-asset network of networks.[21]
References
- ↑ "lightningnetwork/lnd" (in en). https://github.com/lightningnetwork/lnd.
- ↑ Russo, Camila (March 15, 2018). "Technology Meant to Make Bitcoin Money Again Is Now Live". https://www.bloomberg.com/news/articles/2018-03-15/technology-meant-to-make-bitcoin-money-again-is-going-live-today.
- ↑ "MIT and Stanford Professors Are Designing a Cryptocurrency to Top Bitcoin: Unit-e". January 17, 2019. https://fortune.com/2019/01/17/unit-e-cryptocurrency-news-bitcoin/.
- ↑ Popper, Nathaniel (August 15, 2017). "Bitcoin price surges after deal on software updates". The Boston Globe. https://www.newspapers.com/clip/40494024/article_about_lightning_network.
- ↑ Lee, Timothy B. (2018-02-04). "Bitcoin has a huge scaling problem—Lightning could be the solution" (in en-us). https://arstechnica.com/tech-policy/2018/02/bitcoins-lightning-network-a-deep-dive/.
- ↑ "Lightning Network whitepaper 0.5 by Joseph Poon and Thaddeus Dryja". 28 February 2015. http://lightning.network/.
- ↑ Browne, Ryan (6 February 2019). "Jack Dorsey says the 'only' cryptocurrency he owns is bitcoin" (in en). https://www.cnbc.com/2019/02/06/jack-dorsey-says-the-only-cryptocurrency-he-owns-is-bitcoin.html.
- ↑ Hackett, Robert; Roberts, Jeff John; Wieczner, Jen. "The Ledger: Cryptocurrency Custody, QuadrigaCX Quagmire, CEOs Pass Bitcoin 'Torch'" (in en). Fortune Magazine. https://fortune.com/2019/02/12/the-ledger-cryptocurrency-custody-quadrigacx-quagmire-ceos-pass-bitcoin-torch/?.com.
- ↑ 9.0 9.1 9.2 9.3 9.4 Antonopoulos, Andreas (2017-07-21). Mastering Bitcoin (2nd ed.). O'Reilly. pp. 297–304. ISBN 978-1491954386.
- ↑ "The Lightning Network Could Make Bitcoin Faster—and Cheaper" (in en). Wired. ISSN 1059-1028. https://www.wired.com/story/the-lightning-network-could-make-bitcoin-faster-and-cheaper/. Retrieved 2019-12-12.
- ↑ "MIT, Stanford Academics Design Cryptocurrency to Better Bitcoin" (in en). Bloomberg. https://www.bloomberg.com/news/articles/2019-01-17/mit-stanford-academics-design-cryptocurrency-to-better-bitcoin.
- ↑ Burchert, Conrad; Decker, Christian; Wattenhofer, Roger (August 29, 2018). "Scalable Funding of Bitcoin Micropayment Channel Networks". Royal Society Open Science 5 (8): 180089. doi:10.1098/rsos.180089. PMID 30225004. PMC 6124062. Bibcode: 2018RSOS....580089B. https://www.tik.ee.ethz.ch/file/a20a865ce40d40c8f942cf206a7cba96/Scalable_Funding_Of_Blockchain_Micropayment_Networks%20(1).pdf. Retrieved 17 December 2019.
- ↑ Lightning Network In-Progress Specifications, Lightning Network, 2022-10-15, https://github.com/lightning/bolts, retrieved 2022-10-15
- ↑ Perez, Sarah (2022-01-18). "Block's Cash App adopts Lightning Network for free bitcoin payments" (in en-US). https://techcrunch.com/2022/01/18/blocks-cash-app-adopts-lightning-network-for-free-bitcoin-payments/.
- ↑ Ajiboye, Timi; Buenaventura, Luis; Gladstein, Alex; Liu, Lily; Lloyd, Alexander; Machado, Alejandro; Song, Jimmy; Vranova, Alena (2019-08-14). The little bitcoin book : why bitcoin matters for your freedom, finances, and future. Redwood City, CA: 21 Million Books. ISBN 978-1-64199-050-9.
- ↑ Antonopoulos, Andreas; Osuntokun, Olaoluwa; Pickhardt, René (January 4, 2022). "How the Lightning Network Works". Mastering the Lightning Network: A Second Layer Blockchain Protocol for Instant Bitcoin Payments (1st ed.). O'Reilly Media. ISBN 978-1492054863. https://github.com/lnbook/lnbook/blob/firstedition_firstprint/03_how_ln_works.asciidoc.
- ↑ Sztorc, Paul (April 4, 2022). "Lightning Network -- Fundamental Limitations". https://www.truthcoin.info/blog/lightning-limitations/.
- ↑ Kohler, Che (July 6, 2023). "What Is The Validating Lightning Signer?". https://thebitcoinmanual.com/articles/validating-lightning-signer/.
- ↑ Antonopoulos, Andreas; Osuntokun, Olaoluwa; Pickhardt, René (January 4, 2022). "Chapter 8: Routing on a Network of Payment Channels". Mastering the Lightning Network: A Second Layer Blockchain Protocol for Instant Bitcoin Payments (1st ed.). O'Reilly Media. ISBN 978-1492054863. https://github.com/lnbook/lnbook/blob/firstedition_firstprint/08_routing_htlcs.asciidoc.
- ↑ Russo, Camila (February 27, 2018). "Crypto Legend Who Bought Pizza With 10,000 Bitcoin Is Back At It". https://www.bloomberg.com/news/articles/2018-02-26/crypto-legend-who-bought-pizza-with-10-000-bitcoin-is-back-at-it.
- ↑ Hydranet Team (October 17, 2018). "Lightning Network and Atomic Swaps". https://medium.com/stakenet/lightning-network-and-atomic-swaps-f24eb4996eb9.
External links
Original source: https://en.wikipedia.org/wiki/Lightning Network.
Read more |