What is the Lightning Network?
The Lightning Network is a second-layer payments network which uses the Bitcoin blockchain as a settlement layer. But what does that mean? To answer that, let’s change the question: “Why do we need the Lightning Network?”
Bitcoin’s Scaling Problem
In Bitcoin, on average a new block is found every 10 minutes. When a block is found, it is broadcast to the network, validated and stored on disk forever by every single Bitcoin node on the planet. Each new block contains about 2 megabytes of data. This means that the Bitcoin blockchain is growing at a rate of about 288 megabytes (MB) each and every day. About 2 gigabytes (GB) every week. Almost 9 gigabytes per month. And 100 gigabytes per year!
This might not sound like a lot of data. After all, the computer you’re using to read this probably has hundreds of gigabytes of space. The problem here is that it’s not just 100 GB in one place. It’s 100 GB multiplied by the number of nodes in the network. Which today is about 10,000 nodes. That’s 10,000 x 100 GB of disk space consumed each year. And disk space is not the most important limitation when running a Bitcoin full node. We’ll get to this more in detail later.
With so much new data created, transmitted, validated, and stored every year, the Bitcoin network is still only able to handle about 6 transactions per second. Compared to other (centralized) payment networks, this isn’t much:
- PayPal – 240 transactions per second (average)
- VISA – 3,500 transactions per second (average) and 65,000 (peak capacity)
- AliPay – 325,000 transactions per second (peak capacity)
It’s not entirely fair to compare these other payment networks to Bitcoin because they achieve their high thru-put by being totally centralized. But it’s still a useful metric. So how can Bitcoin scale to a similar or greater number of transactions per second?
Limitations of All Blockchains
Before we can find a solution, it’s necessary to more deeply understand the problem. Why is Bitcoin limited to 2 megabytes per block every 10 minutes? There are hard limitations which constrain any public ledger blockchain which cannot be hand-waved away with flashy marketing. Disk space is the most obvious limitation, but networking and computation can be bottlenecks as well.
- Disk Space – The amount of space needed to store the blockchain on disk directly translates to higher hardware costs. Typically solid-state drives (SSD) are preferred over hard-disk drives due to superior read/write performance.
- Networking – Bandwidth and data caps imposed by internet service providers can make it too expensive for normal people to operate a node in some parts of the world. Latency caused by physical distance between nodes in the network and computational complexity in validating blocks/transactions can apply pressure to geographically centralize mining operations.
- Computation – New block and transaction validation can greatly affect how computationally expensive it is to validate the whole blockchain since it was first created. This can make it difficult or impossible for new node operators to catch-up.
So what kind of scaling solution can help address some or all of these technical limitations?
Payment Channels
A bi-directional payment channel allows a pair of nodes to exchange value in the form of signed Bitcoin transactions which designate the shared balance between the two nodes. These signed transactions are stored only by these two nodes and are not broadcast to the rest of the Bitcoin network. Instead, they can go on exchanging signed transactions back and forth forever until one of the nodes would like to close the payment channel.
Each node in the Lightning Network manages its own payment channels between itself and other nodes. To create (or “open”) a channel, a single on-chain Bitcoin transaction is created as a sort of joint escrow account between two nodes. This is the opening channel transaction. Once the transaction is confirmed, the channel is considered open and it is safe for the two nodes begin exchanging value using that channel.
To close a channel and settle its balance between the two nodes, a single transaction is broadcast and stored on-chain. Either node is able to close the channel and move their funds at any time without the permission of the other. In this way the Lightning Network is a trust-less scaling solution for Bitcoin.
It’s important to note that a node in the Lightning Network does not have to be directly connected to another node in order to send it Bitcoin. Payments can be relayed thru the network, passing it from one node to the next, thru payment channels until it finally reaches the recipient.
Lightning Network By The Numbers
Here are a few statistics about the Lightning Network as of September 25, 2022:
- 15,819 total Lightning nodes
- 11,381 nodes reachable via TOR only
- 81,538 channels
- 4,833 BTC (~95,140,000 EUR) total network capacity
From the above images, we can see that the vast majority of public (clear net) Lightning Network nodes are based in North America and Europe. Next most are based in Southeast Asia, followed by South America and Australia. Africa still has relatively few Lightning nodes.
From these charts we can see that the total number of nodes, channels, and network capacity has gone through two periods of quick growth – the first period from mid-2018 to 2019 and the second period from 2021 and continuing into 2022.
You can find the latest statistics and charts at mempool.space and 1ml.com.
Getting Started with the Lightning Network
The easiest way to get started is to use a mobile wallet app. Similar to on-chain mobile wallets, it’s a good idea to keep only small amounts of money in your phone. If using a self-custody wallet, be sure to write down your seed phrase on paper and keep it safe. This allows you to restore your funds in case your phone is lost or stolen.
Self-Custody Mobile Wallets
Use a mobile wallet app to send and receive bitcoin over the Lightning Network on your phone. We recommend to use self-custody wallet software because it puts you in control of your private keys. This does require a bit of learning, but in the long-term it is safer.
Phoenix
–
Created by the developers of the Eclair Lightning Network node implementation.
Breez
–
Includes podcasts 2.0 integration and a built-in point-of-sale app.
Custodial Wallet Apps
Sometimes it makes sense to use a custodial wallet app. For example, if you want to have a backup wallet for the rare occasions that your primary wallet is out of funds or is not working. Since you do not hold the private keys, we recommend only to keep small amounts of money in a custodial wallet at any time.
Wallet of Satoshi
–
Easy to use, but not your keys not your coins, as they say.
Browser Extensions
It is also possible to have a Bitcoin Lightning wallet directly in your browser. This allows you to pay small amounts of bitcoin directly to publishers of articles, podcasts, and more.
Hardware Projects to Run Your Own Node
If you have a bit of experience building your own computer, you can try to run your own Bitcoin Lightning node at home on a raspberrypi or other hardware device. There are several hardware projects that provide documentation and open-source software to make running and managing your node easier:
Growing The Bitcoin Community
At Bleskomat, our mission is to provide innovative hardware devices designed specifically for small business owners who would like to grow their local Bitcoin community. We believe that practical experience is worth more than a thousand articles or tweets. So that’s why we created the Bleskomat ATM – the next generation Bitcoin Lightning ATM. It’s easy for the customer to use and it’s easy for the operator to setup and manage.
Check out our shop to learn more. We offer a variety of products including the fully assembled Bleskomat ATM, do-it-yourself kits, stickers, and more coming soon!
Resources For Further Learning
Below is a list of resources that can help you to learn more about Bitcoin and the Lightning Network: