create account

Question asked on Musing.io by groynes

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @musing-threads/p34dxe83f

· @groynes ·
Question asked on Musing.io
<a href="https://musing.io/q/groynes/how-do-you-explain-me-lightning-network-in-layman-way"><b>View this question on Musing.io</b></a>
👍  
properties (23)
authorgroynes
permlinkf3fhmw3ap
categorymusing-threads
json_metadata"{"app":"musing/1.1","appTags":["bitcoin"],"appCategory":"bitcoin","appTitle":"How do you explain me \"lightning network\" in layman way?","appBody":"","appDepth":1,"musingAppId":"aU2p3C3a8N","musingAppVersion":"1.1","musingPostType":"question"}"
created2019-07-17 09:32:54
last_update2019-07-17 09:32:54
depth1
children1
last_payout2019-07-24 09:32:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length134
author_reputation2,685,713,863,414
root_title"Musing Posts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id88,398,186
net_rshares62,297,329
author_curate_reward""
vote details (1)
@crypto-wisdom ·
$0.56
Question answered on Musing.io
<a href="https://musing.io/q/groynes/how-do-you-explain-me-lightning-network-in-layman-way">View this answer on Musing.io</a>
👍  ,
properties (23)
authorcrypto-wisdom
permlinkp38sgp3sf
categorymusing-threads
json_metadata"{"app":"musing/1.1","appTags":["bitcoin"],"appCategory":"bitcoin","appTitle":"How do you explain me \"lightning network\" in layman way?","appBody":"<p>Lightning Network is preferably a scaling solution to the blockchain. &nbsp;It is a routed network of bidirectional payment channels which are connected to each other. Means any user can rout the payment from channel to channel without trusting the intermediate parties and the intermediate parties can earn a small fee for letting the routing of payment through them. However the process will remain trustless.&nbsp;</p>\n<p><strong>Example:-</strong></p>\n<p>Suppose there are 5 users: <strong>Eoin, Alex, Shepherd, Chris, Robert</strong> and there are different channel that connects <strong>Eoin to Alex, Alex to Shepherd, Shepherd to Chris, Chris to Robert</strong>.</p>\n<p>Eoin wants to send 1 BTC to Robert, but he is not connected to Robert directly and he does not want to open a direct channel either, as they may cost more money to open a LN channel. Eoin’s lightning node is connected with Alex’s node and Alex’s node is connected with Shepherd’s node and similarly Shepherd is connected to Chris and Chris is connected to Robert.&nbsp;</p>\n<p>So Robert will generate a secret R which only he knows and he hashes it and sends the hash H to Eoin’s node.</p>\n<p>Now Eoin will create an HTLC payable to the person who can solve the hash H with a 10 block refund timeout and for an amount 1.003 BTC. The extra amount 0.003 BTC will be used to pay the intermediaries in the LN channel for routing the payment from Eoin to Robert.</p>\n<p><br></p>\n<p><img src=\"https://cdn.steemitimages.com/DQmd2jJGYjDZRLfZ5Hp8Fzw61jqZYhpbVGEGt6oBUvqYPfg/wp9.png\" /></p>\n<p><br></p>\n<p>So Eoin sends the HTLC to Alex, So if Alex knows the secret to solve the hash H within a timeout of 10 blocks then it will consume 1.003 BTC of Eoin. Alex does not know the secret, so what he will do is that, he will create another HTLC on his payment channel to Shepherd with a commitment of 1.002 BTC who can solve the hash H for 9 blocks. Similarly Shepherd will create another HTLC on his payment channel to Chris with a commitment of 1.001 BTC who can solve the hash for 8 blocks and this process continues and similarly Chris creates another HTLC on his payment channel to Robert with a commitment of 1 BTC who can solve it for 7 blocks.&nbsp;</p>\n<p>Now Robert knows the secret value R to solve the hash H, so he can claim the HTLC from Chris. So he sends the secret R to Chris and gets 1 BTC. So now Chris can claim the HTLC committed by Shepherd and earn 0.001 BTC and in similar fashion Shepherd and Alex both can get 0.001 BTC. So in this example, the intermediaries put their lightning channel at stake for routing the payment from Eoin to Robert and for that they earned incentives of 0.001 BTC each. This is how the lightning channel works. So if the secret is known the intermediate nodes can claim back their channel balance along with a fee and if it will not be known then after the timeout, they will get their channel balance. So the nodes have nothing to lose and if they successfully rout a payment through their nodes they can earn an incentive.</p>\n<p>About HTLC</p>\n<p><strong>\"Time Lock\" &amp; \"hash Lock\"</strong> verifications in a combination is known as <strong>\"HTLC\"</strong>(Hashed Timelock Contract) protocol.&nbsp;</p>\n<p><strong>Time Lock</strong></p>\n<p>Funds can only be spent after a certain time period. It could be 1 day or 2 days or 7 days etc.</p>\n<h5><strong>Hash Lock</strong></h5>\n<p>Funds can only be spent after a question hidden by hash is discovered.</p>\n<p><br></p>\n<p><br></p>","appDepth":2,"appParentPermlink":"f3fhmw3ap","appParentAuthor":"groynes","musingAppId":"aU2p3C3a8N","musingAppVersion":"1.1","musingPostType":"answer"}"
created2019-07-17 10:30:39
last_update2019-07-17 10:30:39
depth2
children0
last_payout2019-07-24 10:30:39
cashout_time1969-12-31 23:59:59
total_payout_value0.424 HBD
curator_payout_value0.140 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length125
author_reputation11,811,825,859,420
root_title"Musing Posts"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id88,399,585
net_rshares1,540,471,756,358
author_curate_reward""
vote details (2)