What Is the Lightning Network?
The Lightning Network (also referred to as Lightning, or LN) is a scalability solution built on top of Bitcoin that allows users to quickly send and receive BTC with virtually no fees.
Lightning is considered to be an off-chain, Layer 2, solution, meaning that transfers are done via a new network of payment channels anchored in Bitcoin’s blockchain.
As the world’s first and leading cryptocurrency, Bitcoin has become an important means of transacting value because, for the first time, any holder has the freedom to:
Hold bitcoin without unexpected supply inflation
Send and receive bitcoin without the need for an intermediary
Verify transactions using their own nodes
However, many agree that Bitcoin still needs better functionality in order to become a global medium of exchange and a peer-to-peer cash system as originally laid out in the seminal whitepaper Bitcoin: A Peer-to-Peer Electronic Cash System.
Currently, Bitcoin faces the following limitations:
Fees – As block space is limited, mining fees can fluctuate wildly based on demand for transaction inclusion.
Transactions per second – Bitcoin is only capable of approximately 7 transactions per second (TPS)
Network congestion – Slow block times and heightened use of the network can result in delays in transaction confirmations
The Bitcoin Lightning Network aims to solve these limitations by providing instant and inexpensive transactions while achieving a throughput of approximately 1 million transactions per second.
While Lightning can be used for any type of transfer, most find it useful for micropayments or smaller transfers that are typically uneconomical due to on-chain fees.
As of June 2022, Lightning Network stats show that the network has grown to more than 4,000 BTC capacity, up from 2,000 BTC just a year ago.
It is important to note that the Lightning Network does not implement a new token and allows for the same freedoms as Bitcoin – it’s decentralized, permissionless, and open source. Its security derives from on-chain Bitcoin transactions, which use smart contracts to enable instant, off-chain settlements.
A Brief History of the Lightning Network
The Lightning Network was originally envisioned in a whitepaper written by Joseph Poon and Tadge Dryja in 2015.
Its testnet was released in May 2016 and, by January 2017, Lightning’s first implementation – lnd – was released in its alpha stage. The first real-world transaction over a Lightning Network channel occurred in December 2017, when Alex Bosworth used Lightning to pay for his phone bill.
There have been several teams that have since released Lightning nodes on mainnet, including Blockstream’s core lightning, Lightning Labs’ lnd and Acinq’s Eclair solutions.
In January 2019, pseudonymous Twitter personality Hodlonaut sent 0.001 BTC (or 100,000 satoshis) to a trusted wallet using the Lightning Network. The goal of this exercise was for this recipient to add 10,000 satoshis to the total and send it to another LN wallet, thus setting off a chain of transactions worldwide.
The metaphorical torch was transferred 292 times, including to the likes of Jack Dorsey, Elizabeth Stark and Pierre Rochard, before reaching 4,390,000 satoshis that were then sent to Bitcoin Venezuela, a non-profit organization aimed at promoting Bitcoin in Venezuela.
How Does Lightning Network Work?
The Lightning Network is built off-chain for users to conduct bitcoin transfers in an effort to reduce on-chain network congestion.
To start, a channel is opened between two parties where they can submit funds. They can then use this channel to send BTC between themselves instantly, with near-zero fees, without needing to broadcast every transaction to the base layer of the Bitcoin blockchain.
Either party can settle on the Bitcoin blockchain and close the channel at any point in time.
When the channel is closed and settled on the base layer blockchain, the funds are sent to each party according to the channel’s transfer history, which is summarized in its entirety as a single transaction on the Bitcoin blockchain. The only Lightning-related transactions that are broadcast to the Bitcoin network are the opening and closing of channels. This helps free up block space, resulting in lower network fees and an increase in economic activity per block.
The direct payment channel between the two parties can also become part of the larger Lightning Network. If two parties don’t have a direct channel, they may transfer funds through interconnected pathways. Lightning nodes on the network search for the best route to perform the transaction.
For example, if your friend (who you have a channel with) takes you to their favorite coffee shop, who they have a channel with, Lightning Network would allow you to route your payment through your friend when you pay for coffee, without you needing to open a new channel with the coffee shop. This all happens in a few seconds and is not subject to long waits or high fees like on the main blockchain.
Privacy on Lightning
On-chain transactions on the Bitcoin blockchain can be traced from wallet to wallet using blockchain forensics. But by using the Lightning Network, only the opening and closing of channels is recorded to the chain, meaning that most micropayments will be nearly untraceable.
It's worth noting though that the open/close transactions can easily be identified as coming from the Lightning Network because they appear as complex smart contracts that include the public keys and signatures used in the channel. However, future developments in Bitcoin, including Taproot and MuSig2, will allow these types of channel transactions to look identical to a simple peer to peer transaction, making payments on Lightning even more private!
Check out our public node
Check out our Lightning Node here: https://amboss.space/c/purseIO
Updated on: 10/08/2022