Since the lightning network is becoming more popular now,a lot of people are really confused on what actually it is. So here's a question about it:
Question: What is lightning network? What's its role and what does it do?
It is tough to give very brief summary on lightinig Network but I will try to be very brief and put as much information in less words.
Why we need Lighting network?The current bitcoin network will not be able to handle if we have to do transactions on large scale as current network will able to handle only 7 (tps) transactions per seconds (which is nowhere when compared to 56000 tps capablity of VISA and handling 4000 tps during peaktime.) So Lightinig Network is a proposed solution that will able to help in doing billion of transactions per day without affecting the blockchain.
How Lightining Network will work?When two parties are interacting with each other on regular basis then they can commit to signing the transaction without broadcasting to global bitcoin blockchain. This will remove dependency from blockchain. They can create fund into a 2 of-2 multisignature address (where it requires consent from both parties to create spend).
Micro payment channel created above will create relationship between two parties only. To make bitcoin scalable we will need a large network of channels on the Bitcoin blockchain. That network will be lighting network.
Lightinig Network will use Hashed TimeLock Contract for security of transactions.
Benefit of lightining networkRapid payments: payments within an established channel can be made almost as fast as data can travel over the Internet between the two peers.
No third-party trust: the two peers in a channel pay each other directly using regular Bitcoin transactions (of which only one is broadcast) so at no point does any third party control their funds.
Reduced blockchain load
Channels can stay open indefinitely
Rapid cooperative closes
Outsourcable enforcement
Onion-style routing
Multisignature capable
Securely cross blockchains
Sub-satoshi payments
Single-funded channels
Current vulnerability in Lighting network.Improper Timelocks: Participants must choose timelocks with sufficient amounts of time. If insufficient time is given, it is possible that timelocked transactions believed to be invalid will become valid, enabling coin theft by the counterparty.
Forced Expiration Spam:If a malicious participant creates many channels and forces them all to expire at once, these may overwhelm block data capacity, forcing expiration and broadcast to the blockchain. The resultwould be mass spam on the bitcoin network.
Coin Theft via Cracking: As parties must be online and using private keys to sign, there is a possibility that, if the computer where the private keys are stored is compromised, coins will be stolen by the attacker.
Data Loss : When one party loses data, it is possible for the counterparty to steal funds.
Forgetting to Broadcast the Transaction in Time
All these vulnerablity can be mitigated and Lighting Network will give Bitcoin Network to do billion transactions in a day using the desktop/Home pcs.
In short, Lightning Network will be bidirectional micro payment channel that will help to solve the problem of scalablity in bitcoin Network.
References:
https://www.weusecoins.com/assets/pdf/library/Lightning%20Network%20Whitepaper.pdfhttps://en.bitcoin.it/wiki/Lightning_Networkhttps://en.bitcoin.it/wiki/Hashed_Timelock_Contractshttps://en.bitcoin.it/wiki/Payment_channels