Main navigation

Error message

Warning: Undefined array key 0 in amp_entity_view_alter() (line 156 of modules/contrib/amp/amp.module).
amp_entity_view_alter(Array, Object, Object) (Line: 545)
Drupal\Core\Extension\ModuleHandler->alter('node_view', Array, Object, Object) (Line: 304)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple(Array) (Line: 238)
Drupal\Core\Entity\EntityViewBuilder->build(Array)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 377)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 583)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 239)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 187)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 18)

What is the Lightning Network

Advertisement
Wed, 7/03/2018 - 22:24
What is the Lightning Network
Cover image via www.123rf.com
Read U.TODAY on
Google News

Lightning Network is Bitcoin’s solution for scaling to be able to handle large numbers of simultaneous transactions. Not long ago, the Bitcoin network was limited to about three transactions per second (the theoretical maximum was seven, but under real-world conditions, three was about as much as the network could handle). Back in 2013-2014, it became clear that Bitcoin was rapidly outgrowing its ability to process transactions, and that the time would come when fees shot up and transactions became delayed due to overcapacity.

Step one: SegWit

Bitcoin’s Core developers decided to use a two-pronged approach to the scalability crisis. Creating the Lightning Network was their ultimate goal, but in the meantime they had to fix something called the malleability problem. In order to fix that, and to moderately increase the capacity of the network, they created Segregated Witness (SegWit).

It took awhile, but eventually the Bitcoin community accepted SegWit, and it went live in the fall of 2017. Now that SegWit has been enabled, the malleability problem is fixed and the network can theoretically handle 2-3 times as many transactions per second. The foundation for Lightning Network has now been laid.

Step two: Lightning

Lightning Network allows the creation of payment channels between a sender and receiver. The way it all works is highly complicated, but essentially the sender locks his funds on the Blockchain and then sends cryptographically-signed IOUs through the Lightning Network. Participants in the same payment channel can exchange the IOUs, either in full or in part, and have the option to redeem them on the Bitcoin Blockchain at any time.

The result is something both very complex, and very simple. Consider the following scenario:

Bob sends Alice 1 BTC
Alice sends Sam 1 BTC
Sam sends Expedia 1 BTC
Expedia sends Phil 1 BTC as a refund for a trip he purchased in error.

On the Bitcoin network today, each transaction has to be recorded to the Blockchain, taking up valuable space in newly-mined blocks. Four transactions have to be sent across the network and recorded on the Blockchain.

Using the Lightning Network, however, it’s only necessary to record two transactions: the initial one and the final one. The two intermediate transactions both happen off-chain, and don’t need to be recorded to Bitcoin’s Blockchain. You’ll merely see on the Blockchain that Bob sent 1 BTC and Phil received 1 BTC.

Every step of the way, value is exchanged on the payment channel by means of IOUs. Bob sends Alice an IOU for 1 BTC. Alice sends that IOU to Sam, who sends that IOU to Expedia. Expedia then sends the IOU to Phil, who can chose to redeem the IOU on the Bitcoin network and receive 1 BTC.

Supporters of the Lightning Network hope that this can be used for very long chains of transactions, effectively removing thousands or tens of thousands of transactions from Bitcoin’s Blockchain. In theory, a payment channel can be kept open indefinitely, because the actual coins are “locked” and can’t be spent until the IOU is presented to the Bitcoin network, which causes the funds to automatically move to the IOU-holder’s address.

Critics suggest that the Lightning Network will never be used for enough “hops” to make it worthwhile. They essentially think that people will redeem their IOUs on the Bitcoin Blockchain rather than transferring those IOUs over the Lightning Network. It remains to be seen which side is correct.

Related articles

Advertisement
TopCryptoNewsinYourMailbox
TopCryptoNewsinYourMailbox
Advertisement
Advertisement

Recommended articles

Latest Press Releases

Our social media
There's a lot to see there, too

Popular articles

Advertisement
AD