
Lightning Network
The lightning network is a second layer technology applied to bitcoin that uses micropayment channels to scale its blockchain’s capability to conduct transactions more efficiently. Transactions conducted on lightning networks are faster, less costly, and more readily confirmed than those conducted directly on the bitcoin blockchain (i.e., on-chain). By taking transactions away from the main blockchain and making them off-chain, the lightning network was designed to de-congest the bitcoin blockchain and reduce associated transaction fees. This is true not only for the nodes maintaining the lightning network itself, but also the knock-on cost of potentially higher bitcoin fees that are translated to the network. Lightning networks are also believed to be vulnerable to hacks and thefts because they are required to be online at all times. The lightning network is a technological solution intended to solve the problem of transaction speed on the bitcoin blockchain by introducing off-ledger transactions. The lightning network is a second layer technology applied to bitcoin that uses micropayment channels to scale its blockchain’s capability to conduct transactions more efficiently.

What Is the Lightning Network?
The lightning network is a second layer technology applied to bitcoin that uses micropayment channels to scale its blockchain’s capability to conduct transactions more efficiently. Transactions conducted on lightning networks are faster, less costly, and more readily confirmed than those conducted directly on the bitcoin blockchain (i.e., on-chain).
By taking transactions away from the main blockchain and making them off-chain, the lightning network was designed to de-congest the bitcoin blockchain and reduce associated transaction fees. The lightning network can also be used to conduct other types of off-chain transactions involving exchanges between cryptocurrencies.
For example, it is helpful for facilitating atomic swaps that enable one cryptocurrency to be exchanged for another without the involvement of an intermediary, such as cryptocurrency exchanges.



Understanding the Lightning Network
The lightning network was first proposed by Joseph Poon and Thaddeus Dryja in 2015 and has been under development since that time. The problem the lighting network was devised to solve is the slow transaction time and throughput of bitcoin.
If it is to achieve its potential of becoming a medium for daily transactions, bitcoin will need to reach tens or hundreds of thousands of transactions per second, similar to credit cards or electronic payments networks. Due to the nature of its decentralized technology that requires consensus from all nodes within its network, bitcoin is laden with such problems in its current state.
For example, approving and storing transactions will become expensive and time-consuming if their numbers on bitcoin’s network multiply. An increase in transaction numbers also requires orders of magnitude improvement in the processing power of the computers that are required to execute transactions involving bitcoin. Additionally, the energy necessary to compute this information is enormous, making maintaining bitcoin for day-to-day transactions prohibitively expensive.
The lightning network proposed to solve the scaling problem by creating a second layer on bitcoin’s main blockchain. That second layer consists of multiple payment channels between parties or bitcoin users. A lightning network channel is a transaction mechanism between two parties. Using channels, the parties can make or receive payments from each other.
These transactions are processed differently compared to standard transactions occurring on bitcoin’s blockchain. They are only updated on the main blockchain when two parties open and close a channel.
Between those two acts, the parties can shift funds between themselves endlessly without informing the main blockchain about their activities. This approach dramatically speeds up a transaction’s speed because all transactions are not required to be approved by all nodes within a blockchain. Individual payment channels between various parties combine to form a network of lightning nodes that can route transactions among themselves. The interconnections between various payment channels result in the Lightning Network.
How the Lightning Network Works
Say Alice opens a channel with her favorite coffee shop and deposits $100 worth of bitcoin in it. Her transactions with the coffee shop are instant because she has a direct channel with it.
Bob, who has another channel open with the grocery store he visits most frequently, also buys coffee from Alice’s shop. The connection between Alice, the coffee shop, and Bob ensures that Alice can use funds from her balance with the coffee shop to buy groceries from Bob’s store. Similarly, Bob can use his grocery store balance to conduct transactions with businesses in Alice’s network.
If Bob closes his channel with the grocery store (and there are no other customers in common between the coffee shop and grocery store), then Alice will have to open another channel with the grocery store to make purchases there. In this way, a web of transactions is created and routed between multiple lightning nodes in a decentralized fashion.
On a more technical level, the lightning network uses smart contracts and multi-signature scripts to implement its vision. An initial transaction, called the funding transaction, is created when one or both parties fund a channel. In a typical multi-signature environment, two master keys (one public and another private) are initially exchanged. The exchange facilitates access and spending of funds.
In the case of a lightning node, however, the signatures are not exchanged. This is done to prevent the funding transactions’ spend from being recognized by the main blockchain. Instead, the two parties exchange a single key that is used to validate spending transactions (also called commitment transactions) between themselves.
The two parties can conduct endless commitment transactions between themselves and other nodes on a lightning network. They exchange their master keys only when the channel between them is closed.
Are There Fees for Using Lightning Network?
Yes, there are transaction fees associated with using the lightning network. They are a combination of routing charges for routing payment information between lightning nodes and bitcoin’s transaction fees to open and close channels.
In November 2019, scientists at two universities in Hungary and the Institute for Computer Science and Control published a paper that questioned the ability of lightning network operators to continue to process transactions without dramatically increasing fees. The authors say in their abstract, "participation is economically irrational for the majority of the large routing nodes who currently hold the network together. Either traffic or transaction fees must increase by orders of magnitude to make payment routing economically viable."
What Are Some Problems With the Lightning Network?
The most obvious problem with lightning networks, which are meant to be decentralized, is that they could lead to a replication of the hub-and-spoke model that characterizes today’s financial systems. In the current model, banks and financial institutions are the main intermediaries through which all transactions take place.
By having more open connections with others, lightning nodes for prominent businesses may become similar hubs or centralized nodes in the network. A failure at one such hub could easily crash a significant portion of (or the entire) network.
Another significant problem, mentioned previously, is the necessity to increase fees to make maintaining the network economically viable. This is true not only for the nodes maintaining the lightning network itself, but also the knock-on cost of potentially higher bitcoin fees that are translated to the network.
Lightning networks are also believed to be vulnerable to hacks and thefts because they are required to be online at all times. As such, cold storage of coins is not an option because the network does not allow it.
Related terms:
Altcoin Investing: What Investors Need to Know
An Altcoin is an alternate cryptocurrency other than Bitcoin. Learn about Altcoins, how they work, and which are the most popular. read more
Atomic Swaps Defined
Atomic swaps are smart contracts that enable exchanges from one cryptocurrency to another without using centralized intermediaries. read more
Bitcoin
Bitcoin is a digital or virtual currency created in 2009 that uses peer-to-peer technology to facilitate instant payments. read more
Blockchain : What You Need to Know
A guide to help you understand what blockchain is and how it can be used by industries. You've probably encountered a definition like this: “blockchain is a distributed, decentralized, public ledger." But blockchain is easier to understand than it sounds. read more
On Chain Transactions (Cryptocurrency)
On-chain transactions occur on the cryptocurrency blockchain, and their occurrence changes the state of the blockchain. read more
Cryptocurrency : What Is Cryptocurrency?
A cryptocurrency is a digital or virtual currency that uses cryptography and is difficult to counterfeit because of this security feature. read more
Ether (ETH)
Ether is the cryptocurrency of the Ethereum network. All of the programs linked with the Ethereum network require computing power; Ether is the token that is used to pay for this power. read more
Micropayment
Micropayments are small payments usually of less than a dollar (and in some cases a fraction of a cent) that are mainly made online. read more
Off-Chain Transactions (Cryptocurrency)
Off-chain transactions occur outside of the blockchain network and provide a low-cost, instant transaction medium for the cryptocurrency. read more
On-Chain Governance
On-chain governance is a governance system for blockchain in which rules are hardcoded into protocol. read more