An Overview of Bitcoin Lightning Network

栏目: IT技术 · 发布时间: 5年前

内容简介:Joseph Poon and Thaddeus Dryja came up with an innovative idea in their whitepaperSince then, it has caught a lot of attention and development work in going to make lightning networks a reality. In this article, we will discover behind scenes of the lightn

Joseph Poon and Thaddeus Dryja came up with an innovative idea in their whitepaper The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments . They proposed a way to make Bitcoin highly scalable from 8 transactions per second(TPS) to about million TPS.

Since then, it has caught a lot of attention and development work in going to make lightning networks a reality. In this article, we will discover behind scenes of the lightning network.

Problem with current Bitcoin system-

  1. TPS is very low : Currently, Bitcoin blockchain can handle 7 to 10 transactions per second. Other payment systems like Visa can handle up to 65000 transactions per second. That hinders the scalability and adaptability of Bitcoin.
  2. Mining fees : The mining fee can go high, which makes micro-payment economically infeasible.

Also Read: A Candid Explanation of Bitcoin

Let’s try to understand it with a real-life example. Consider a situation where you are in a grocery shop. You buy some groceries, and then you made a payment in bitcoin. Because of the mining fee, you paid an additional amount to mine your transaction in about 10 minutes(it is the time interval in which blocks are produced in Bitcoin). You finished your shopping, and when you were returning, you remembered you forgot to buy some stuff. Therefore, you went back to the shop to get them, and then you have to repeat the whole process once again. You were compelled to spend more Bitcoins and more time for a simple task of buying groceries.

So how Lightning Network solves this?

Lightning network is a layer two solution built on top of Bitcoin blockchain to facilitate speedy micro-payments with almost negligible using payment channels technology.

In our example, if we use the Lightning network, the process will be completely different and faster. Initially, the shop keeper and you would deposit a certain amount of Bitcoins called Funding Transaction  to open a payment channel. The amount deposited is usually equal to lower than the amount you want to transact in the channel.

According to the whitepaper , you can do endless transactions inside the channel. In the example, when you forgot to buy something, you can return and buy them without any delay or paying anything extra Bitcoin. 

So, both you and the shopkeeper could make a channel for one week, make as many transactions as possible for a week and then settle it by closing the channel at the end of the week. The final transaction recorded at the time of settlement is known as Closing Transaction,  which is the final state that will be recorded in the Bitcoin network.

It is essential to keep in mind that only two transactions will be recorded in the Bitcoin main network. One while opening a channel and the other one while closing the channel.

Payment Routing in Lightning Network

When these channels are interconnected with each other, it forms a network which we all know as Lightning Network . Using this, you can send your bitcoin transactions faster to anyone in the network. All you have to do is to find a path from your node to the destination node. The path should have enough capacity, i.e., the fund you are sending much be less than or equal to the funding transaction. 

Consider the situation in which you want to buy a cake from a pastry shop. You don’t have a payment channel with the shop’s owner. But the grocery shop’s owner has a channel with the pastry shop’s owner. You can pay the amount to the pastry shop without opening a new channel with the pastry shop. This process incurs a fee called the  routing fee . This fee is paid to the nodes, which are a part of the path.

Since, Lightning network uses a P2P encryption protocol called  onion protocol , the intermediates who are a part of the path won’t be able to know the transaction data.

Advantages of Lightning Network

  1. The throughput of the network will go up.
  2. It will make Bitcoin scalable like traditional online payment systems.
  3. Cross Chain transactions will be faster than before.

The Lightning Network enables commercial payments through Bitcoin and presents a future where Bitcoin can replace fiat payment and can potentially replace traditional payment systems. In the next few articles, we will go deep into the Lightning network technology and development activities around it.


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

三双鞋

三双鞋

[美] 谢家华 / [美] 谢传刚 / 中华工商联合出版社 / 2011-1 / 32.90元

本书是“美捷步”(Zappos)首席执行官谢家华创造奇迹的心路历程与商业哲学的精华萃取,分享了他在商场与生活中得到的宝贵经验与教训。从儿时创办蚯蚓养殖场到大学经营比萨生意,从“链接交换”公司到“美捷步”品牌,本书将谢家华的个人传记与其公司传奇的商业史完美结合,不仅打造了一套利润、激情和目标渐次递进的独特商业模式,更揭示了成功路上起决定作用的真正秘密:奉上幸福。一起来看看 《三双鞋》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

MD5 加密
MD5 加密

MD5 加密工具