What is Lightning Network: a detailed guide

Date:

2018-11-29 19:15:19

Views:

3874

Rating:

1Like 0Dislike

Share:

What is Lightning Network: a detailed guide Source:

In this article we analyze in detail the background to the creation of a Lightning Network (LN) and why its scaling properties will fall by the way to what we have today, and maybe will result in transformative improvement. Describe some of the fundamental basics that make it possible to create Lightning Network. Then explore its constraints, including insecurity (when compared with the transactions on the blockchain) and also consider why the chain Lightning is hardly suitable to ensure the large payments.

the

Creating Lightning Network: prerequisites

The Payment system on blockchain usually work in the "tell all". That is, when someone makes a payment, he needs to talk about the transaction to all participants.

Nodes (a node) in such a system should:

the
    the
  • to store the transaction for an unlimited period of time;
  • the
  • to validate the transaction;
  • the
  • send a transaction.

The Miners, meanwhile, must participate in a competitive energy-intensive process so that in the event of a conflict transaction to determine whether to inscribe the transaction in the block.

The payee has no special requirements. For example, if someone buys a coffee using Bitcoin, the transaction is broadcasted in the entire network of Bitcoin without giving priority to the dissemination of transaction neither the coffee shop nor the operator of payment of this coffee shop. Many believe that it is ineffective. If there is a task to create a payment system that will be used by millions of people around the globe, such an approach is not even logical name.
Lightning Network represents an improvement of efficiency and uses a more logical structure of the payment network. Instead to notify of every transaction, the transaction is sent directly to the payee. Only if the parties are not honest, you want to resort to a cumbersome process in which a distributed and censorship resistant system has to find a consensus. Thus, it is possible to achieve productivity and efficiency almost equivalent to the speed of direct communication between the various individuals on the Internet, and to preserve a number of safety features inherent in the Bitcoin blockchain.

However, the creation of such a payment system in which all parties will always come back to the blockchain and claim your money in case of problems, it is a complex and involving some risks and limitations.

the

Technical basics Lightning Network

The Diagram above shows the traditional way to create a basic indirect payment channel. Although the creation of such a channel includes an alert of every transaction as soon as the channel is set, multiple payments from Bob to Alice can be implemented by a simple data transmission from Bob to Alice, avoiding alerting the entire network. The billing process can be repeated again and again, until the funds in the channel (in this case 1 BTC) will not dry up.

In theory, the channel above the safe for a number of reasons:

the
    the
  • if Bob tries to refuse your payment, all that Alice need to do is sign and alert network transactions in P1, which Bob has signed, when they made a payment. And if it is confirmed before the expiry of a one week lock of transaction B, Alice will receive your 0,1 BTC, regardless of the actions of Bob;
  • the
  • if Alice refuses to sign anything to upset Bob, Bob only need to wait one week until the transaction B will not be valid and then he will be able to transfer money from the channel itself, notifying the network about the transaction B that Alice is already signed.
  • the
  • process will be even more secure if A transaction cannot change the third party (change TXID) otherwise, Bob could create a transaction B only in order to make it invalid in case of changes of transaction A, thereby forcing Alice to hold funds hostage for an indefinite period.

As follows from the same email Satoshi sent the Bitcoin developer Mike Hearn is, this basic structure was the idea of Satoshi.

How does Lightning Network

Based Lightning Network is the creation of micropayments. The network itself is, in fact, is a design of the payment channels. Payments find your way through the channels which are connected with them directly, until they reach the final recipient.

Such design of which is made of Lightning, is the basis of more complex technologies. The design above is non-directional, and that it was useful, and the payments has to be carried out in both directions. For example, imagine creating a bidirectional payment channels by creating two channels between Alice and Bob, each in the opposite direction.

To be precise, Lightning uses the design channels the Pune-Grigi. She has lower liquidity requirements than the network undirected payment channels, running in opposite directions, which would require twice confined within the channel means. But the channel Pune-Digi has more weaknesses compared to other approaches. Channels Pune-Drei require that each party signed a new transaction whenever the channel is updated (payment is), while the non-directional channel requires only the signature of the sender when the update channel.

Good Old-fashioned function lock time can be replaced by more advanced

the
    the
  • authentication time-out (check locktime verify BIP65) can confirm that the output cannot be spent until a certain period, instead of considered that a certain part of the outputwrong until a certain date, as does the lock time;
  • the
  • relative timeout (BIP68) can replace the specific end date relative date for a particular conclusion. This may allow payment channels to remain open for indefinite periods, with the transaction closing will activate the time window during which the other side will have a limited period of time (e.g. two weeks) to inform on transactions demand and recover the funds;
  • the
  • hashed contracts time (HTLC) may require the payee to provide a line that is hashed to a certain value by a certain date or return funds to the payer. The same hash can be used to activate other payments to a network of channels, allowing you to make payments up the chain of channels.
the

advantages of the Lightning Network

In theory, Lightning Network will allow all network participants to carry out almost instant and cheap transaction in all directions, finding a path among nodes. Thus, this avoids the notification of the Bitcoin network with no problems, and result in scaling of the network. This architecture even allows for microtransactions and improves the confidentiality of the payments.

Channels can be left open indefinitely because of the function of relative time and should not be the risk of interference; if someone tries to steal the funds due to the closure of the channel, other participants of the transaction have enough time to manage their own withdrawal funds and get them back.

the

network Functionality and user experience

It Remains unclear how people and businesses will use the network, and the commentators have different views on this question. Some believe that Lightning Network will eventually become a widespread means for realisation of small payments, and all the difficult moments will be processed automatically. Others are skeptical of LN due to the introduction of additional components, which will require manual configuration. They also foresee an unpleasant user experience, marred by an unexpected closure of the channel, and periods of idle LN.

In reality, the truth may be somewhere between these two visions, and the network can potentially move on to more ambitious performance over time. The disagreement, apparently, is that skeptics LN considering it as a complex, incomplete and impractical payment system based only on the creation of a system of payment channels. Supporters see the LANG recipe scaling by add a secondary layer on the Bitcoin blockchain, which in the end will be supported by the wallets, processing systems and payment service providers, and will lead to a simple and unobtrusive user experience. Ultimately, the wallets can communicate with each other automatically and dynamically decide what methods of payments will be the best on the circuit blocks or through LN.

the

security Risks Lightning Network

the Need to be online when payment is received. As we explained above, before receiving the payment, the recipient must sign the transaction, so the sender will know that he can claim their funds if the hostile channel closes or refuses to sign the transaction. Therefore, to get money need a hot wallet, then private keys are potentially show up, if there is a breach.

Need to track the channel. the Lightning Network Participants or observers may be required for active tracking of payment channels. This may burden the user and potentially reduce the security of funds in the channel relative to store them on the Bitcoin blockchain. There is a risk to miss the deadline of the withdrawal transaction, or in the case of improper monitoring of the channel, or in the case of the downtrodden, overwhelmed blockchain.

Miners can censor transactions, closing the channel. 51% Hasrat may be able to steal money from people, Lightning and censors the transaction the channel is closed, in which the miner is one of the parties. While the potential consequences of this type of attack will be devastating and without LN, LN offers a potentially hostile miners space.

Although each of these three factors by itself may not be significant, the need to show their private keys to the Internet upon receipt of payment, the risk of hostile closure of the channel and the risk of redactions transaction in the amount of can become a serious threat to security, although all of these risks can be managed to some extent.
There is a risk that ill-informed user will keep too much money in the channel and the funds are lost or stolen in case one of these unfortunate scenarios. There is also a risk that price volatility will lead to the fact that users will keep more money in payment than they wanted.

the

Insights

LN obviously offers a significant and transformative improvements in scalability. As a result, the speed of transactions and fees will be significantly improved, and the security of the main Protocol will remain unchanged. But weakened security properties of the payment network, the Lightning will make the LN for carrying out of payments (or even unnecessary). In any case, the wide distribution of LNwill require significant time.

Recommended

CRYPTOMACH / Maximum exchange rate of Bitcoin in the future, the output of the crypts on the map, Ycash and the Board of Finance

CRYPTOMACH / Maximum exchange rate of Bitcoin in the future, the output of the crypts on the map, Ycash and the Board of Finance

the long-awaited summer. Niche cryptocurrency supported the event and gave unusually hot week. During the last seven days, we learned about the new line of graphics cards from AMD, the mining in TON and hard forks . In addition dealt with the profita...

Co-owner Bitcoin.org Coinbase Pro ridiculed and called a stock exchange Scam

Co-owner Bitcoin.org Coinbase Pro ridiculed and called a stock exchange Scam

co-Owner Bitcoin.org and most popular forum about cryptocurrency Bitcointalk.org Cobra called Coinbase Scam Pro trading platform American crypto currency exchange Coinbase. In his tweet he wrote «if you read Coinbase Pro backwards, get the word ...

The Ethereum is a cryptocurrency Scam. A new report Chainalysis

The Ethereum is a cryptocurrency Scam. A new report Chainalysis

When people learned how to create a new cryptocurrency and began to build their infrastructure like marketplaces, in the field began to appear and fraud. According to blockchain auditor Chainalysis for the past two years, fraud in the ecosystem has s...

Comments (0)

This article has no comment, be the first!

Add comment

Related News

VEB and the Grozny mayor's office transferred the housing sector on the blockchain

VEB and the Grozny mayor's office transferred the housing sector on the blockchain

In February, the first Deputy Chairman of VTB Olga Dergunova positively the prospects of the blockchain. According to her, the technology will improve the speed of transactions and security standards. To move from words to action ...

Hacker 1337. How to hack Etherscan not to cause any harm

Hacker 1337. How to hack Etherscan not to cause any harm

Monday on the website Etherscan.io appeared a pop-up message with the numbers 1337. The visitors began to panic and spread rumors about hacking Explorer. really hacked, but the damage from a hacker attack was zero. About it writes...

Mine Bitcoin became unprofitable. What will happen now?

Mine Bitcoin became unprofitable. What will happen now?

the Profitability of mining Bitcoin and its main "clones" is a longstanding topic of debate. For a long time, the main coin retained the championship in the profitability of production, but today it is not so important. Now mining...

Bitcoin SV was in the top 10 in the world of cryptocurrency. The developers of the coin promised blocks for 2 gigabytes

Bitcoin SV was in the top 10 in the world of cryptocurrency. The developers of the coin promised blocks for 2 gigabytes

«War of harratov» between the fork Bitcoin Cash by the end. However, to everyone's surprise «defeated» SV Bitcoin entered the top 10 coins on Coinmarketcap. Note that this week a fork of Craig Wright suddenly i...

Suffering prolonged. The expert said, when Bitcoin will rise above $ 5,000

Suffering prolonged. The expert said, when Bitcoin will rise above $ 5,000

the founder of the project Civic Vinny Lingham does not believe in the imminent bullrun. In his opinion, Bitcoin price will remain below $ 5,000 for at least three months. Lingam does not rule out a long flat, which can last up to...

Analyst: Bitcoin will test the level of 2970 dollars in the near future

Analyst: Bitcoin will test the level of 2970 dollars in the near future

Saw a sideways movement on the chart after draining? Still no time to relax! The fall of Bitcoin will likely continue. In the near future cryptocurrency could reach $ 2970. Sure Daily FX analyst Nick Cowley. According to him, the ...

China has upgraded the rating of blockchain projects. What a cryptocurrency is in the first place?

China has upgraded the rating of blockchain projects. What a cryptocurrency is in the first place?

Chinese center of information and development of the industry has updated its monthly ranking of cryptoprocta. Bitcoin moved up a few notches upward, additional support was also expressed for EOS and Ethereum. Representatives of t...

Bitcoin rests only on the faith of the people. The point of view of the expert

Bitcoin rests only on the faith of the people. The point of view of the expert

In a recent discussion on the topic of cryptocurrency technology correspondent, CNBC Elizabeth Schulze said that such a long-term survival of Bitcoin is bound solely to people who believe in him. The current situation on the stock...

The government is preparing a new draft law on the regulation of cryptocurrencies. Miners against

The government is preparing a new draft law on the regulation of cryptocurrencies. Miners against

a New version of the law on the regulation of digital assets in Russia did not satisfy large domestic miners. They do not agree with the strict control of the Central Bank in virtually all spheres of industry. Instead of the origi...

FAQ: what is a token and why they are needed

FAQ: what is a token and why they are needed

collecting expensive items — the main hobby of the rich. However, how can we ensure the preservation of your collection against intruders or other unforeseen threats? All easy enough to transfer his collection to the blockchain! H...

It will not be better: last week the ICO projects sold 100 thousand ETH

It will not be better: last week the ICO projects sold 100 thousand ETH

Over the last month -the project has sold over 200 thousand ETH, 119 thousand of them – only in the last 7 days. With the recent fall of the stock market ICO started in haste from their inventory of coins. Today daily sale from 10...

Acne Buterin: incorrect application of the blockchain is a waste of time

Acne Buterin: incorrect application of the blockchain is a waste of time

yesterday in an interview with Quartz co-founder of Ethereum Vitalik Buterin stated that improper use of the blockchain leads to «waste of time». «Push» the blockchain in any industry is not necessary, even if ...

Traders: on cryptomeria observed a significant decrease in trading volumes

Traders: on cryptomeria observed a significant decrease in trading volumes

According to the analytical portal Diar, trading volumes on cryptomeria significantly declined since the beginning of this year. Experts have examined the data from eight of the leading trading platforms — Binance, OKex, Huobi, Bi...

How varied the interest of Russians to Bitcoin? The Study Yandex

How varied the interest of Russians to Bitcoin? The Study Yandex

Analysts of Yandex, set a goal and watched as the Russians have been interested in Bitcoin since its inception. Forgot to separately study and cryptolibrary in December last year and analyzed the queries at the peak of the cryptoc...

In search of freebies: how to make money on the hands of cryptocurrency?

In search of freebies: how to make money on the hands of cryptocurrency?

If you've always wanted «easy money», you came to the right place! In the crypt is easy enough to reward a couple of simple actions. Such an award is often called «bounty» the English translation of the word. H...

Bitcoin Cash rolled after the fall. When will growth?

Bitcoin Cash rolled after the fall. When will growth?

Cash till holds above $ 165, and sellers slow down. In the following days, the cryptocurrency may well revert to $ 185. To start forming uptrend BCH needs to gain a foothold above $ 200. However, sentiment in the market yet do no...

New study: 51 percent Attack Bitcoin is impossible

New study: 51 percent Attack Bitcoin is impossible

associate Professor in the Department of electrical engineering Indian Institute of technology, Bombay Professor Saravanan Vijayakumaran published a new research work dedicated to the security of the Bitcoin Protocol. He found out...

Inside the Nasdaq will start trading Bitcoin futures in the first quarter of 2019

Inside the Nasdaq will start trading Bitcoin futures in the first quarter of 2019

While everyone is waiting for the promised start of trading Bitcoin futures on Bakkt, Nasdaq has prepared a surprise for cryptocommunist. According to Bloomberg, famed American stock exchange to start trading derivatives for cash ...

Mining died: Russians massively sell their GPU farms and asik

Mining died: Russians massively sell their GPU farms and asik

the crisis in the cryptocurrency market have affected not only the miners. Due to the rapid fall of Bitcoin, which began a week ago, the Russian cryptomnesia also actively sell their farms for mining. This is reported by journalis...

Fall is a Bitcoin to $ 2,500? The opinion of an experienced trader

Fall is a Bitcoin to $ 2,500? The opinion of an experienced trader

exchange Oanda Trader Stephen Innes discussed with representatives of Bloomberg, the situation on the stock market. He also spoke about the fall of Bitcoin in the last couple of weeks. The trader was asked to substantiate his rece...