• bitcoin
    BTC$11,763.45-0.01%
  • Lightning Network Explained

    Lightning Network Explained

    With Bitcoin being touted as the future of money and the backbone of the world’s financial system, to achieve this it has to scale.

    With decentralization comes the problem of scalability, and at seven transactions a second Bitcoin is no where near anything it promises to be.

    Layer two scaling solutions such as Lightning Network are being created, however, and it’s expected that once it is fully operational, everyday payments with BTC will be a seamless and cheap option.

    Lightning Network Explained

    Transactions on the Lightning Network are off chain transactions, and are not picked up by the Bitcoin miners and will not be added to transactions on the blockchain, thus freeing up space for bigger on-chain transactions.

    For any currency to be a mainstream exchangeable asset, it has to be able to scale. VISA is an application on fiat currency and it’s believed it can handle 65,000 transactions per second.

    Obviously, at 7 transactions a second Bitcoin is lagging way behind VISA. That’s because of the decentralized nature of Bitcoin.

    Every transaction on Bitcoin is picked up and hashed by miners, who are decentralized around the world. They hash them into the blocks, send them onto Nodes, who validate the transactions, before letting miners fight it out with each other to be the one to add the latest block onto the blockchain.

    Lightning Network

    VISA processes everything on their centralized database, and this efficiency is what any true decentralized blockchain cannot compete with. That said, centralized databases, such as VISA cannot compete with the integrity of Bitcoin’s monetary policy, and the costs VISA charges cannot compete with the cost of transactions on the Lightning Network.

    There has been a lot of debate about Bitcoin and its scaling issues. Back in 2017 there was debate among the community as to whether Bitcoin should increase the block size from one megabyte, and with it an increase in transactions speed.

    It was decided among the Bitcoin community not to increase the block size, and so a hard fork saw the creation of Bitcoin Cash (BCH), which can handle 61 transactions per second.

    Still, nowhere near enough, and the bigger block size would have compromised the security of Bitcoin, so it really wouldn’t have been worth it.

    Lightning Network

    Lightning Network is a layer two payment gateway built on top of Bitcoin, with the main purpose to handle every day transactions such as buying a coffee, or going to the supermarket.

    Transactions on the Lightning Network will take place in a matter of milliseconds, and it will be able to handle billions of transactions a second. This introduces miniscule fees of fractions of a penny, which will also facilitate the idea of microtransactions, something that will be essential as the IoT roles out.

    Lightning Network allows for faster and cheaper transactions on Bitcoin

    How Does Lightning Network Work?

    Let’s use Bob and his favourite coffee shop as a case study. Bob goes to his favourite coffee shop on his way to work and buys his morning coffee. If he was to pay for it on the Bitcoin blockchain, his transaction fee wouldn’t make it worth it.

    However, with the Lightning Network, Bob can set up a payment channel with the coffee shop to pay. To do this, both Bob and the coffee shop deposit a certain amount of bitcoin in what is known as a multi signature (multi-sig) address on the Lightning Network.

    Let’s say Bob deposits 0.001 BTC in the payment channel and the coffee shop deposits nothing, the multi-sig will act like a safe between the two parties and transactions within the channel can only be executed when both parties sign.

    When a payment channel is created, a balance sheet that explains how the funds in the address should be distributed. So at the moment of Bob and the coffee shop creating the channel, Bob would get 0.001 BTC and the coffee shop wouldn’t own any of the bitcoin in the channel.

    The payment channel is stored on the Bitcoin blockchain, so there is full transparency among both parties. The coffee shop owner can then verify that Bob has enough value in the channel and will receive payment for anything Bob buys.

    With the channel now open, Bob can order his morning coffee, and let’s say the coffee costs 0.0005 BTC, Bob would simply subtract the amount from his balance sheet and add it the the balance sheet of the coffee shop.

    Once done, the updated balance sheet will say that both parties now own 0.0005 BTC on the payment channel. Bob and the coffee shop then both sign it with their private keys, and the transaction will take place.

    How To Get Your BTC

    Bob can do this as many times as he likes, considering he has enough BTC in the channel to pay. They can make as many transactions among each other as they like, there is no limit. As long as there is value a transaction can take place, no matter how little value it is.

    The BTC will remain in the channel until either Bob or the coffee shop decide to cash out.

    If either party decides to cash out, they simply take the latest balance sheet, and broadcast it to the Bitcoin network. Miners will then validate the signatures on the balance sheet, and if everything is above board, the funds will be released according to the balance sheet.

    No matter how many transactions were on the payment channel, once it’s broadcast to the network, it will create only a single transaction on the Bitcoin blockchain, thus significantly reducing congestion on the main chain

    Anyone can set up a payment channel on lightning network

    Do You Have To Create a Payment Channel With Everyone?

    The idea of opening a channel with every person or business seems like a headache. You can open as many payment channels as you like, and it’s a good idea to open one with somebody you transact regularly with. Just like Bob and his favourite coffee shop.

    But let’s say Bob’s friend Alice is up from London for the day, and it’s her first time at the coffee shop. It’s pointless her creating a channel with the coffee shop just for one coffee.

    The beauty of the Lightning Network means she doesn’t have to.

    Let’s say Alice and Bob are good friends and have their own payment channel, that they use among their friends’ group. Alice wants to buy Bob and herself a coffee. So, rather than opening up a new channel with the coffee shop, she can just forward it to Bob, who can then forward it to the coffee shop. And it can all be done in a matter of seconds.

    Summary

    Bitcoin is such an exciting innovation. A store of value it is definitely becoming, but it really wants to become a peer-to-peer payment system.

    This will take a while before its being done at scale because of the volatility of BTC’s price. The cost and speed of transactions on the Bitcoin blockchain also makes it improbable for now.

    But this is where the Lightning Network comes in. It allows anybody to pay anybody, however little, at scale. It’s still in its very early days, but more channels are growing on the network.

    VISA charges merchants a few percent for every transaction, and it’s you and me who pay for that. Lightning Network will pretty much eradicate these fees, and once the BTC price stabilizes more people and businesses will turn to Lightning Network.

    Why wouldn’t they? It’s much cheaper and more secure than systems like VISA.

    Author: Tommy Limpitlaw

    Share:

    Share on facebook
    Share on twitter
    Share on linkedin
    Share on pinterest
    Share on reddit
    Share on telegram
    Share on tumblr
    Share on vk
    Share on whatsapp
    Share on email

    Bitcoin 101