Exploring Bitcoin’s Lightning Network Solution
Introduction
Since the inception of Bitcoin, the network has faced scalability challenges such as slow transaction time and high fees. As the network continues to grow and the number of transactions increases, Bitcoin’s limited blockchain capacity to process transactions rapidly and efficiently has become evident. For emphasis the bitcoin blockchain can only process between 7–10 transactions per second compared to traditional systems like Visa that can handle thousands of transactions within the same time. If your transaction doesn’t make it into the current block, it joins a queue and that queue can take anywhere from a few minutes to potentially a day or more to process, depending on how many other transactions are queued in the memepool. The challenge became apparent toward the end of 2017 when millions of people jumped on the Bitcoin bandwagon, and it struggled to cope with the number of transactions. At its peak in December 2017, the average cost to process one transaction on the Bitcoin blockchain — whether the amount was $1 or $1,000 — was $37. In April 2021, the average Bitcoin transaction fee surpassed $60. While that might seem insignificant for transactions moving thousands of dollars’ worth of Bitcoin, but for smaller payments, it’s not sustainable. That made Bitcoin largely uneconomical as a currency and limits its use as a medium to process quick transactions
Lighting Network explained
To overcome the inherent limitations of bitcoin, several scalability solutions have been proposed to increase the number of transactions that the network can handle. One such solution is the Lightning Network. The Lightning Network is referred to as an off-chain or layer two solution — a layer on top of the Bitcoin blockchain, and it is designed to speed up transactions and cut costs, making it easier and cheaper for both people and businesses to transact, and without having to record every transaction on the bitcoin blockchain.
The Lightning Network uses bidirectional payment channels to settle transactions off-chain, hence achieving instant transaction speeds with incredible minimal fees. The Lightning Network has its own nodes and software, but it nonetheless communicates with the main chain. The Lightning Network is run by a network of nodes that process payments, and transactions are commonly made using QR codes — instead of public keys. In theory, it could allow thousands, or even hundreds of thousands, of transactions to take place instantly, making small transactions economical.
To function, Lighting network employs Hash Time Lock Contract (HTLC) which provides a mechanism where funds are released only upon fulfillment of specific conditions. This involves the sender generating a random secret, hashing it, and using the hash as a condition for releasing funds. Here’s how it typically operates:
The sender generates a random secret and hashes it.
Using the hashed value, the sender locks the funds in a smart contract through a transaction.
The receiver receives the hash and has a designated timeframe to unveil the preimage (the original secret).
Once the plaintext is revealed, the receiver can claim the funds from the contract. Failure to reveal the plaintext within the specified time results in the funds being returned to the sender.
Get Uncle Manu’s stories in your inbox
Join Medium for free to get updates from this writer.
The network is maintained by nodes that route payments. Nodes are run by everyday people — or corporations — running a program on their desktops, laptops. This keeps the Lightning Network decentralized.
How to use it?
To start using the Lightning Network, first, any amount of Bitcoin needs to be locked up in a payments channel. Then, it can be spent across the Lightning Network until the channel is closed.
When someone wants to receive a transaction, they create an invoice, a long alphanumeric string of digits — often represented using QR codes. The person who wants to make the payment simply needs to scan this invoice with their Lightning Wallet and confirm the payment by providing the digital signature. They can also copy and send the text, and payment will be made.
When a payment is made, the confirmation is sent across the network to the person who originally made the request. This typically happens in just a few seconds — hence the name “Lightning.” Also, since payments aren’t made on the Bitcoin blockchain, they’re not subject to long wait times and high fees. This means that much smaller payments, or micropayments, can be made for as little as one Satoshi (the smallest fraction of Bitcoin).
Once someone has finished using the lighting network, they can close that channel and exit, and then use their bitcoin again on the standard Bitcoin network.
True to the name, Lightning transactions are lightning-fast. There are no block confirmations to wait for — payments can be made as fast as your internet connection will permit.
The future of Lighting Network
The use and adoption of lighting networks since its inception has witnessed a slow yet steady growth since its inception. More and more corporations are beginning to embrace and utilize the lighting network as a solution to bitcoin scalability. As more nodes come onboard, they provide more liquidity to the network.
Remarkably, Coinbase, the largest U.S. crypto exchange by trading volume, has formally added support for the Lightning Network. David Marcus, former President of PayPal and former Vice President of Messaging Products at Facebook, who now serves as the CEO of Lightspark, a software as a service (SaaS) company that enables Lightning payments made a bold claim that the Bitcoin Lightning Network could soon be the world’s top payment network.
The Lightning Network surged from 8,321 nodes in January 2021 to 19,374 by January 2022, marking an impressive 132% increase. As of March 2024, the Lightning Network now boasts upwards of 13,000 online nodes, 52,000+ active channels, and just over 4,570 BTC in capacity. A growing number of crypto exchanges now support the Lightning Network, including Binance, Kraken, Bitstamp and Bitfinex.






