An Overview of Bitcoin Lightning Network

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

内容简介: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.


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

查看所有标签

猜你喜欢:

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

重启

重启

米奇•乔尔 / 曲强 / 中信出版社 / 2014-6-10 / 45.00元

罗振宇、丹尼尔•平克、赛斯•高汀、丹•艾瑞里、谢家华、阿里安娜•赫芬顿强烈推荐! 美国亚马逊2013年年度商业&投资类图书榜前20名! 互联网时代五大剧变让企业和个人无处可逃 进化,或被扔在旧时代? 全球顶尖的数字预言家独特分享 商业转型与思维转型的实践指南 当个人变为互联世界中的一个节点,如何开启新的工作方式? 如何与顾客建立直接关系?如何进行实用主义营......一起来看看 《重启》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具