The overall cryptocurrency capitalization is already more than $133.5 BLN, almost 400K transactions pass through the Bitcoin Blockchain daily. Each transaction is queued with other requests, processed by the miners, adding to the Blockchain and then distributed to the nodes around the world. For some cryptocurrency transfers, such a set of actions is superfluous and loads the network in vain.
For example, the load in the Bitcoin network is gradually increasing, as there are scalability issues taking place from time to time. The network bandwidth is measured by a particular number of operations per second, which is lower in comparison to the real number of transactions. The Lightning Network technology appeared as a solution to this problem.
What is Lightning Network
Lightning Network (LN) is a so-called “Layer-2” protocol functioning on top of a certain blockchain. LN serves as a solution for scalability issues in the blockchain by enabling fast transactions with a very low network fee. In this article, we’ll go deeper and learn all the benefits of this technology.
How the Lightning network works
The Lightning Network was created by two developers: Joseph Poon and Thaddeus Dryja, and alpha-launched in 2017. This technology is using bidirectional payment channels. Two participants freeze the same amount in the Blockchain to open a payment channel between each other and then use debt receipts among themselves to perform a transaction. With this technology, operations are being built on top of the Blockchain, and only the initial deposit and the final result of all exchanges add in the Blockchain, which greatly decreases the load of the main Blockchain network.
Imagine that Bob and Alice freeze 10 BTC, each one freezes 5 BTC. This deposit is added to the Blockchain and the payment channel is considered and open between Bob and Alice. Now, if Bob wants to send to Alice 2 BTC, he needs to transfer the ownership of 2 BTC with 3 BTC left. Alice, in turn, will get 2 BTC from Bob and will own 7 BTC. Either Bob or Alice may close the channel, and the result will be recorded in the Blockchain, but if they plan to transfer more money to each other, the channel is to leave open.
Transactions are going instantly and with the smaller fee due the fact that each operation doesn’t require a separate entry in the main Blockchain, but this technology acquires its full power when many more channels are combined into one common Lightning Network. Likewise, the channel is open for payments between Bob and Alice, and another channel is open between other two participants, so Bob can send to any participant, without having a direct open channel between them.
Where is Lightning Network used
As of now, Lightning Network has already greatly reduced the load on the Bitcoin network. It’s noticeable that this technology can work not only on the Bitcoin Blockchain but also on many other: Stellar, Ethereum, Zcash, Litecoin, and XRP. XRP (Ripple) has already launched Lightning Network on its main net, and Litecoin is working on it right now, because the LN technology improves the work of the whole Blockchain by making the network more scalable, increasing transaction speed and lowering the fees even for those who don’t use this technology. The Blockstream engineer, Christian Decker, expressed the opinion that “Using the Lightning network the Blockchain can reach the level of such payment systems as VISA or MasterCard”.
In addition, the bidirectional channel technology partly increases the anonymity of the transactions which is attractive to many users of cryptocurrency.
Transactions per second
Disadvantages of Lightning Network
Firstly, at this moment the Lightning Network is on an experimental stage and hence big important transactions are still better to carry out in the main Bitcoin network.
Secondly, Peer-to-Peer (P2P) protocol utilized in Lightning Network requires both peers online in order to complete a transaction. Should one gets offline, the broadcasting stops immediately.
The third is you can’t top up the channel from the mainnet. It’s called “Channel depletion”, a situation occurring when the first node transfers all the funds of the channel to the second node. Then such a channel can work only in one direction, hence sending funds from the first node is impossible unless the second one transfers part of the funds back, or the two nodes will have to open a new payment channel. Apart from that, there is a concerning issue with 64% of the network capacity belongs to one user. That case reasonably calls into question the decentralization of the Lightning Network.
Pros: The Lightning Network concept means that the system will work on top of the blockchain, but won’t actually have its security behind itself. Thus, it’s very likely that it will be mostly used for small transactions.
Cons: The Lightning network allows users to perform transactions directly among themselves, without adding the data of each transaction in the main Blockchain. Given that, LN kills two birds with one stone:
- LN provides faster and cheaper transactions
- LN significantly reduces the network load
This technology contributes the most to user anonymity, and also opens the way to game-changing exchange solutions, but as of yet, there’s no software with which real-life casual users of the network can make transactions. We will support the Lightning Network in Atomic Wallet.
Atomic Wallet has already implemented Atomic Swap exchange in mainnet for BTC–LTC–QTUM trading pairs and you can directly exchange your assets in a decentralized order book. Atomic is a universal wallet that supports 300+ cryptocurrency assets, built-in exchange and “Buy crypto with a credit card” feature, so you’ll get all you need in one decentralized interface.