Lightning Network

The Lightning Network is a second-layer network on top of bitcoin for fast, cheap payments. Money moves almost instantly through payment channels between participants, and only the opening and closing of a channel are recorded on the main blockchain.

How it works

Two participants open a channel by depositing bitcoin into a shared multisignature address, and that transaction is recorded on the blockchain. From then on they can send amounts back and forth as many times as they like simply by signing a new split of the balance, none of which goes on the blockchain. When the channel is closed, the final balance is sent to the main network. Channels are linked into a wider network, so you can also pay someone you have no direct channel with: the payment hops through a chain of intermediate nodes, and conditional contracts prevent them from keeping it.

History and uses

Developers Joseph Poon and Thaddeus Dryja published the description of the network in 2015 and 2016, and working versions appeared on bitcoin's main network in 2018. Lightning is used for small payments, tips, paying for online services in satoshis and quick transfers between services. A payment goes through in seconds, and the fee is often a fraction of a cent. A Lightning invoice looks like a long string or a QR code with a limited validity period. Russian law prohibits paying for goods and services with cryptocurrency, so in Russia the network is used mainly for transfers.

Limitations

To receive payments, the recipient needs enough inbound liquidity in their channels, and a large payment may fail to find a route. Your own node has to stay online all the time, and the funds in channels are a hot wallet that the software can access at any moment. If a counterparty tries to close a channel using an outdated balance, it must be challenged in time; watchtower services exist for this purpose. For simplicity, many people choose wallets where a company manages the channels, but then the money is effectively held by that company.

What to keep in mind

Lightning is mainly used for bitcoin, with amounts counted in satoshis. When withdrawing bitcoin from an exchange, you must choose the Lightning network specifically and paste the correct invoice: a main-chain address and a Lightning invoice are different things and must not be mixed up. The network is convenient for small everyday amounts, while large savings are safer on the main chain in a cold wallet. This is not investment advice.

Example

Two people open a channel for 1,000,000 satoshis, with Anna putting in the whole amount. The main-chain opening fee is, say, 2,000 satoshis. Over a month Anna sends Boris 300 payments of 1,000 satoshis each, and every one clears in a second with almost no fee. On closing, the final split goes to the blockchain: 300,000 satoshis for Boris and about 698,000 for Anna, since the closing fee of about 2,000 satoshis comes out of her share. Instead of 300 main-chain transactions, there are just two.

Related terms

Layer 2 SolutionsBitcoinSatoshiBlockchain NodeMempoolMultisignature

On the site

CryptocurrenciesHow to buy cryptoBitcoin Price PredictionCrypto market Monopoly

This article was written by AI. Check specific rates, taxes and broker terms with primary sources.

↑ Top