The Bitcoin Lightning Network | NYDIG (2024)

The Bitcoin Lightning Network

The Bitcoin Lightning Network (Lightning Network) is a payment protocol built on top of Bitcoin (often referred to as the base layer). Lightning doesn’t issue a token or have a blockchain. Instead, Lightning utilizes the Bitcoin network’s1 currency (bitcoin) for payments and its blockchain for final settlement and security.

As a simple analogy, you can think of the Lightning Network as being like Venmo and the Bitcoin network as similar to sending a bank wire. The two networks, while related, each have unique use cases. For example, you wouldn’t use Venmo to make a down payment on a home. Conversely, using a wire transfer to send a friend your share of an Uber ride would be excessive, not to mention costly.

Lightning, then, isn't a substitute for the Bitcoin base layer. Instead, deciding between Lightning or the base layer is simply a matter of picking the right tool for the job. For example, if the task at hand is a small transaction, then the right tool might be payment via Lightning. Lightning becomes an obvious choice if you know that you will have multiple transactions with the same person or business.

At a high level, the Lightning Network is a web of individual connections (known as channels). The secret behind Lightning's instant and cheap payments is that it takes bitcoin transactions "off-chain."

On Bitcoin, transactions must be added to the blockchain by miners. To be included in a block in a timely fashion, most transactions incur a fee that can, at times, be relatively expensive. In addition, Bitcoin adds blocks of transactions once every ten minutes on average, with best practices of waiting an hour for transactions to be considered finalized. Lightning only uses the Bitcoin blockchain to open and close channels, the gateway that connects one Lightning user to another. By doing so, Lightning bypasses base layer transaction fees and wait times. It also provides a definitive answer to the question of scalability that has dogged Bitcoin since its inception. Whereas the Bitcoin network can only process about twelve transactions per second with SegWit enabled,2 Lightning is theoretically capable of billions.3

For comparison, Visa, the world’s largest credit card network, processes just 1,700 transactions per second.4

The Lightning Network is a crucial step on Bitcoin's path to becoming a mainstream currency and, ultimately, a widely accepted medium of exchange. Lightning adoption is growing as people become more familiar with its use cases. For example, cross-border payments such as remittances are practically free and instantaneous via Lightning. Merchants have an excellent reason to adopt Lightning: it's as fast as a credit card swipe with a tiny fraction of the fees. Micropayments, which have been impractical in the digital realm, become possible with Lightning. Lightning Network channels have more than doubled to 70,0005 over the last year for these reasons and more.

Lightning’s History

Lightning might have just popped up on your radar, but the seed for its development is practically as old as Bitcoin itself. In Bitcoin version 0.1, Satoshi Nakamoto, Bitcoin's creator, included unfinished code that hinted at creating personal payment channels.6 In 2013, Bitcoin programmers shared Nakamoto's explanation for how the system would work on the Bitcoin development mailing list.

In the years after Satoshi's code appeared, developers made multiple attempts to build a payment protocol on top of Bitcoin. Unfortunately, none of these early efforts succeeded. The idea didn’t truly come to life until the 2015 publication of "The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments" by Joseph Poon and Thaddeus Dryja.

In the two years following Poon and Dryja’s white paper, many companies would build versions of the Lightning Network using different programming languages. In 2016, developers drafted a protocol known as the Basis of Lightning Technology (BOLT) to ensure these different versions would be interoperable. The last step of the puzzle was Bitcoin's 2017 activation of the SegWit upgrade. SegWit included changes to the Bitcoin Core software that made the Lightning Network possible. A few months later, developers officially launched Lightning for Bitcoin.

Getting Started

The first step to using Lightning is setting up a node or downloading one of the many Lightning-enabled digital wallets. A node is a computer that runs the Bitcoin Core software. Nodes keep a record of the blockchain, verify transactions, and communicate with other users. However, Lightning nodes differ from regular Bitcoin nodes. Lightning nodes only verify transactions they are involved in and only communicate through established channels. On the other hand, full Bitcoin nodes monitor all network activity7 and broadcast and relay transactions to a wider group of peers.

Lightning wallets, ready-to-use applications, are readily available for download for those who don't want to run a node. Wallets come in two flavors: custodial and non-custodial. The difference is that non-custodial wallets allow users to maintain the key for their bitcoin. With custodial wallets, users trust a third party to safeguard their bitcoin.

With either type of wallet, the user is routing their transactions through a node maintained by the wallet provider. While using a Lightning wallet is more accessible, running a node provides more flexibility, lower fees, and increased security. In addition, node operators can receive routing fees, small bitcoin payments for helping pass along transactions throughout the network.

How Lightning Works

Here’s how the Lightning Network functions at a high level.

Lightning users lock up bitcoin in an address that they share control over with another person. One channel owner can't access this locked bitcoin without the permission of their counterpart. When you pay someone with Lightning, the bitcoin that is locked in the address doesn't move anywhere. Instead, the Lightning Network keeps a running tally over who controls what portion of the funds. This lack of movement is why Lightning is fast and practically free. When the address owners wish to "settle up," they publish the latest address statement to the base layer blockchain. Then, the bitcoin in the address is unlocked, and the Bitcoin network distributes the fair share to each owner.

Let's go through an example of how Lightning works between two friends, Alice and Bob, who are always splitting small expenses after weekly nights on the town.

First, Alice and Bob deposit funds via the Bitcoin network to a Lightning account they both control. This type of address is known as a multi-signature address. If Alice or Bob want to close the channel, they need the other to approve the transaction.8 Since depositing funds for the channel requires base layer transactions, Alice and Bob will both be charged a transaction fee and have to wait about an hour for final settlement to the Lightning account.

Once the channel is open and funded, Alice and Bob can use Lightning to manage their tab with each other. To receive a payment, Alice or Bob will create an invoice. Wallets typically generate invoices as QR codes that other wallets can scan. For example, if Alice owes Bob for a meal, Bob would create an invoice from his wallet software that Alice would then scan with her wallet to pay Bob. This payment would only occur on the Lightning Network. The only restriction is that Alice must have adequate funds to make the payment. When Alice makes a payment to Bob, bitcoin doesn't move out of the multi-signature address. Instead, Lightning records that Alice now owns fewer of the account's bitcoin, and Bob has more.

When Alice and Bob want to settle the tab with each other, they'll close the channel and send the last account statement to the Bitcoin blockchain. Reasons for closing a channel could include: one participant running low on funds or if the two parties don't expect to transact anymore. Their closing transaction will incur the Bitcoin base layer's usual charges, and the final settlement will take about an hour. However, by using Lightning, they paid only the fees to open and close their channel while sending money to each other instantaneously and free of charge.

Hops

Now assume that Alice wants to send a one-time payment to Charlie. Unfortunately, Alice and Charlie don't interact very often, so they haven't established a channel. And since they don't expect to make future payments to each other, creating a new channel wouldn't justify the effort or cost.

But just because Alice and Charlie aren't directly connected doesn't rule out the possibility of using Lightning. For instance, Charlie can send Alice an invoice and let the protocol determine if a path between them through existing channels exists. As it turns out, Alice and Charlie both have channels with their mutual friend Bob.

Bob agrees to facilitate Alice's payment to Charlie in exchange for a small routing fee. A payment that goes through an intermediary, in this case, Bob, is said to have taken a "hop." A payment can go through a maximum of 20 hops, but the shorter the path, the better. Each hop comes with an additional routing fee.

To ensure that Bob passes along the bitcoin meant for Charlie, the Lightning Network uses hashed timelock contracts (HTLCs). HTLCs are smart contracts that effectively force Bob to pay Charlie before Alice pays Bob. For the sake of privacy, Bob's node doesn't know who the payment originated with or who the end recipient is. His node only knows it received bitcoin from Alice and that it had to pass it to Charlie. But for all Bob knows, the payment didn't start with Alice or end with Charlie. The path could have started with Adele, whose node routed a payment through Alice, Bob and Charlie to get to Dave. In that example, only Adele and Dave would know the start and end of the chain. However, only Adele is privy to any of the intermediate steps.

Real World Use Cases

The most significant adoption of the Lightning Network to date has been through El Salvador's ratification of bitcoin as legal tender. The country's Chivo wallet is Lightning-enabled, and merchants use the network to accept bitcoin for everyday payments. But Lightning is for more than just buying a cup of coffee. El Salvadorans are using the protocol for sending and receiving remittances, avoiding the high fees of traditional money transmitters.9

For merchants, Lightning is substantially cheaper than accepting credit cards. The median fee for a Lightning payment is mere fractions of a penny. On the other hand, credit card companies charge anywhere from 1.4 to 3.5% in fees for each transaction.10

Unlike the base layer Bitcoin Network, Lightning has no minimum transaction value. A single satoshi, the smallest unit of a bitcoin, can be sent over Lightning. As a result, Lightning opens the frontier ofmicropayments. Think about the publishing industry, which currently struggles with ad- and subscription-based revenue models. Micropayments could represent a middle ground for publishers that hasn't yet been available because of the limitations and fees imposed by incumbent payment processors. A publisher could charge users small amounts to read a single online article rather than forcing them to contemplate buying an annual subscription. In this way, micropayments could make previously uneconomic businesses financially viable, all thanks to the Lightning Network.

Warnings

For all of the good Lightning is already doing and can do in the future, there are some considerations users should keep in mind.

Lightning has only been operational since 2018. While users and liquidity are rapidly growing, the network can still reject payments because it can't find an adequately funded path.

Getting the most out of Lightning takes a little work. Users must keep tabs on their channel balances, particularly if they're trying to run a profitable11 Lightning node. As users make payments, the amount of bitcoin available for outbound liquidity in a channel decreases. Rebalancing channels, adding more bitcoin to some channels, and removing it from others, is a manual process that costs time and money. Adding or removing bitcoin from a channel means closing it and settling the balance on the Bitcoin blockchain, paying the base layer transaction fees in the process. Suppose the user wants to reopen the channel. They'd again pay base layer transaction fees. Rebalancing then should be done judiciously and, ideally, when base layer transaction fees are low.

Finally, because Lightning is still in its infancy and not yet widely adopted, it has yet to be truly battle-tested. Lightning developers have identified a handful of attack methods that malicious actors could exploit. None of these identified hazards are severe enough to derail Lightning's adoption, but users should be mindful that they exist.

An example of one weakness that malicious actors can exploit is cheating a node that isn't paying attention

to its channel. In what is known as a protocol breach, one user will close a channel and submit a false account balance for settlement on Bitcoin. Unfortunately, if the victim's node is offline or is compromised, it might not detect the fraud. Thankfully, the Lightning Network provides a deterrence for this type of attack. If the fraud is detected, the perpetrator forfeits their share of the bitcoin in the account.

Here’s a simplified example of how a protocol breach would play out:

  • Bob and Dave have a channel that they each funded with 100,000 satoshis each.
  • Bob pays Dave 50,000 satoshis. Dave now has a claim to 150,000 satoshis in the account.
  • Bob closes the channel after the payment without consulting Dave. Bob submits the original balance of 100,000 satoshis held by him and Dave as final to the Bitcoin blockchain.
  • Suppose Dave's node doesn't detect that Bob submitted the prior balance within 2,016 blocks on the Bitcoin blockchain (roughly two weeks).12 In that case, Dave risks losing the 50,000 satoshis Bob paid him.
  • If within that 2,016 block period Dave’s node notices that Bob tried to cheat, Dave will get his 150,000 satoshis plus, as a penalty, Bob’s 50,000 remaining satoshis in the channel.
  • If Dave’s node doesn’t detect Bob’s cheating, Bob and Dave will receive 100,000 satoshis.

Other attacks directly target nodes. Griefing, eclipse attacks, and flood and loot attacks are all examples of methods for stealing funds. Each assault works differently, but the basic concept is to overwhelm a node with fake payments or false connections to the network so that it cannot function properly. Users can reduce the risk of these attacks by only opening channels with people they know or with reputable businesses.

What Lightning Means for Bitcoin

The Lightning Network solves Bitcoin’s scalability problem. Small payments are made off the Bitcoin blockchain on Lightning's second layer protocol. Each payment can be transmitted instantaneously on this layer since only the counterparties' nodes need to validate transactions. In addition, because Lightning isn't a blockchain, there's no mining involved until final settlement is made on the Bitcoin network. That is why there's no wait for blocks to be processed and no need to pay what can be costly transaction fees.

But while Lightning doesn't incorporate the Bitcoin blockchain into transactions on its layer, it does utilize it for opening and closing channels. Consequently, Bitcoin secures Lightning.

As more people join the Lightning Network, the use cases for holding bitcoin will rapidly expand. Its continued development could foster new business models and provide billions of disenfranchised people with a fast, cheap, and reliable payment system.

Disclosures

This report has been prepared solely for informational purposes and does not represent investment advice or provide an opinion regarding the fairness of any transaction to any and all parties nor does it constitute an offer, solicitation or a recommendation to buy or sell any particular security or instrument or to adopt any investment strategy. Charts and graphs provided herein are for illustrative purposes only. This report does not represent valuation judgments with respect to any financial instrument, issuer, security or sector that may be described or referenced herein and does not represent a formal or official view of New York Digital Investment Group or its affiliates (collectively, “NYDIG”).

It should not be assumed that NYDIG will make investment recommendations in the future that are consistent with the views expressed herein, or use any or all of the techniques or methods of analysis described herein in managing client accounts. NYDIG may have positions (long or short) or engage in securities transactions that are not consistent with the information and views expressed in this report.

The information provided herein is valid only for the purpose stated herein and as of the date hereof (or such other date as may be indicated herein) and no undertaking has been made to update the information, which may be superseded by subsequent market events or for other reasons. The information in this report may contain projections or other forward-looking statements regarding future events, targets, forecasts or expectations regarding the strategies, techniques or investment philosophies described herein. NYDIG neither assumes any duty to nor undertakes to update any forward-looking statements. There is no assurance that any forward-looking events or targets will be achieved, and actual outcomes may be significantly different from those shown herein. The information in this report, including statements concerning financial market trends, is based on current market conditions, which will fluctuate and may be superseded by subsequent market events or for other reasons.

Information furnished by others, upon which all or portions of this report are based, are from sources believed to be reliable. However, NYDIG makes no representation as to the accuracy, adequacy or completeness of such information and has accepted the information without further verification. No warranty is given as to the accuracy, adequacy or completeness of such information. No responsibility is taken for changes in market conditions or laws or regulations and no obligation is assumed to revise this report to reflect changes, events or conditions that occur subsequent to the date hereof.

Nothing contained herein constitutes investment, legal, tax or other advice nor is it to be relied on in making an investment or other decision. Legal advice can only be provided by legal counsel. NYDIG shall have no liability to any third party in respect of this report or any actions taken or decisions made as a consequence of the information set forth herein. By accepting this report in its entirety, the recipient acknowledges its understanding and acceptance of the foregoing terms.

The Bitcoin Lightning Network | NYDIG (2024)

FAQs

What is the Lightning Network Coinbase answers? ›

What is the Lightning Network? The Lightning Network is a second-layer protocol built on top of the Bitcoin Network. It aims to solve Bitcoin's scalability issues by enabling faster and cheaper transactions.

What is the problem with Bitcoin Lightning Network? ›

- The Problem for Lightning: This malleability posed a significant challenge for the Lightning Network. Because Lightning relies heavily on off-chain transactions, the ability to modify a TxID could potentially be exploited to disrupt payment channels or create fraudulent transactions.

What is the Lightning Network in Bitcoin? ›

The Lightning Network is a second layer for Bitcoin (BTC) that uses micropayment channels to scale the blockchain's capability and handle transactions more efficiently and cheaply. It is a technological solution designed to solve glitches associated with Bitcoin by introducing off-chain transactions.

How do I withdraw Bitcoin from Lightning Network? ›

To complete a withdrawal on the Lightning Network you need to have an invoice from a different platform or Lightning Network enabled wallet. Generate an invoice and then copy and paste the information into Lightning Invoice. After entering the invoice information, the amount will automatically populate.

How to use Bitcoin lightning on cash app? ›

You can also send bitcoin using Lightning or the Bitcoin Network:
  1. Tap the Money tab on your Cash App home screen.
  2. Tap the Bitcoin tile.
  3. Tap the Airplane button.
  4. Choose Send Bitcoin.
  5. Enter the amount and the recipient's $cashtag or BTC address.
  6. Tap Next.
  7. Select a speed.
  8. Tap Confirm & Send.

How much is 1 Bitcoin lightning? ›

The live Lightning Bitcoin price today is $0.211340 USD with a 24-hour trading volume of $4,703.59 USD. Add Lightning Bitcoin to your watchlist. 5.71K watchlists on CoinMarketCap include Lightning Bitcoin.

Is the Bitcoin Lightning Network safe? ›

While the Lightning Network is promising, it's not without risks. Its security model is different from that of a traditional blockchain. Over its history, several security risks have been identified that could compromise the network and or a payment channel.

What is the Lightning Network turning Bitcoin into money? ›

The Lightning Network (LN) allows netting of Bitcoin payments outside the blockchain. We find an association between LN adoption and reduced blockchain congestion. The LN may improve the efficiency of Bitcoin as a means of payment.

What is the difference between Bitcoin network and Lightning Network on Cash App? ›

Lightning transactions are not recorded on the blockchain. The Bitcoin Network (On-Chain or using the blockchain for transactions) takes more processing time, and may have some fees involved. This method relies on the blockchain to process transactions. All Lightning transactions are almost instant.

How to pay with Bitcoin Lightning Network? ›

How to pay on the Lightning Network
  1. Open the payer's wallet on the Lightning page.
  2. Click on “Send.”
  3. Scan the merchant's or an individual's QR code button or enter the address manually.
  4. Confirm everything is correct and proceed with the checkout.
May 9, 2023

How to use Bitcoin Lightning Network in Coinbase? ›

Sending Bitcoin via Lightning
  1. Sign in to your Coinbase account.
  2. Click Transfer, then Send crypto.
  3. Select Bitcoin.
  4. Add your recipient's invoice, then select Continue. Our system will automatically recognize the requested amount and that it's being sent via the Lightning network.
  5. Preview your send, then click Send now.

Can I invest in Bitcoin Lightning Network? ›

While you can't buy shares of the Lightning Network, there are two main ways to invest in it: Buy Bitcoin: As the native token of the Lightning Network is Bitcoin, you can get exposure to it by simply buying and holding it over the long term.

Can I sell Bitcoin Lightning? ›

Sell Bitcoin from Lightning the easy way. Cash out sats directly from your Lightning wallet and withdraw funds in 19 fiat currencies on your bank account in 171 countries. Low & transparent fees.

How long does Bitcoin Lightning Network take? ›

Speed – Settlement time for lightning network transactions is under a minute and can occur in milliseconds. Confirmation time on the bitcoin blockchain, for comparison, occurs every ten minutes, on average.

Can I send Bitcoin Lightning to Bitcoin wallet? ›

You can send bitcoin to Strike users or to Bitcoin or Lightning wallets from your Bitcoin screen.

What is the Lightning transaction on Coinbase? ›

Sending Bitcoin via Lightning

Click Transfer, then Send crypto. Select Bitcoin. Add your recipient's invoice, then select Continue. Our system will automatically recognize the requested amount and that it's being sent via the Lightning network.

What is the Lightning fee on Coinbase? ›

The Lightning Network is a micropayment network that enables the transfer of bitcoin without incurring the transaction fee associated with the Bitcoin blockchain. When you send bitcoin from Coinbase via the Lightning Network, we will charge a processing fee equal to 0.1% of the amount of bitcoin transferred.

What is the secret phrase on Coinbase? ›

Wallet secret recovery phrase

Coinbase Wallet generates a 12-word recovery phrase, also referred to as a seed phrase, that you and only you have access to. This means that if you lose your recovery phrase, you will lose access to your Coinbase Wallet and any funds secured by this recovery phrase will be at risk.

Should I use Bitcoin or Lightning Network? ›

What is the difference between Lightning and Bitcoin Network Transactions? Using the Lightning Network is a faster and cheaper way to send and receive bitcoin transactions. There are typically little to no fees involved, and it's used to send smaller amounts of bitcoin.

Top Articles
What is Robot Trading and How it Works?
Augeo | 8 internal recruitment methods you need to know
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
Non Sequitur
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Gregorio Kreiger

Last Updated:

Views: 5536

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Gregorio Kreiger

Birthday: 1994-12-18

Address: 89212 Tracey Ramp, Sunside, MT 08453-0951

Phone: +9014805370218

Job: Customer Designer

Hobby: Mountain biking, Orienteering, Hiking, Sewing, Backpacking, Mushroom hunting, Backpacking

Introduction: My name is Gregorio Kreiger, I am a tender, brainy, enthusiastic, combative, agreeable, gentle, gentle person who loves writing and wants to share my knowledge and understanding with you.