Bitcoin Forum
October 21, 2019, 03:52:41 AM *
News: 10th anniversary art contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can anyone explain the "Lightning Network" to a 5 year old  (Read 72 times)
mondrany
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
January 25, 2018, 02:29:31 AM
 #1

I grasp that the lightning network is going make transactions cheaper and faster.

Can anyone explain how does it work, the pros and cons?

Much appreciated!    Huh
1571629961
Hero Member
*
Offline Offline

Posts: 1571629961

View Profile Personal Message (Offline)

Ignore
1571629961
Reply with quote  #2

1571629961
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1571629961
Hero Member
*
Offline Offline

Posts: 1571629961

View Profile Personal Message (Offline)

Ignore
1571629961
Reply with quote  #2

1571629961
Report to moderator
Rhegz
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
January 25, 2018, 12:07:16 PM
 #2

In my own opinion it won't possible that you can discuss it especially with a 5 year old. Networking is broad and hard to tackle or understand, but if you will open your heart and mind to understand it, possible that you can but for a 5 year old no i don't think so.
mondrany
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
January 25, 2018, 02:31:38 PM
 #3

In my own opinion it won't possible that you can discuss it especially with a 5 year old. Networking is broad and hard to tackle or understand, but if you will open your heart and mind to understand it, possible that you can but for a 5 year old no i don't think so.

Thanks Rhegz,

Would you be able to give me a basic explanation of LN?

mocacinno
Legendary
*
Offline Offline

Activity: 1736
Merit: 1796


https://unblur.ninja =>lightning network testsite


View Profile WWW
January 25, 2018, 02:36:29 PM
Last edit: January 25, 2018, 02:52:47 PM by mocacinno
Merited by Lucius (1), Tyrantt (1)
 #4

Well, very, very, very, very dumbed down and simplified, the lightning network is basically something like this:

Person A opens a payment channel with person B. Person A and B funds the channel using an on-chain transaction of (for example) 10 BTC.
Person A can now send (for example) 20 offchain transactions of ~0.1BTC to person B (for example, person A has a ipTV subscription with person B, and he pays 0.1 BTC/month for his subscription, every month). Everytime, the status of the channel gets adapted with an offchain transaction.
If, in the end, the channel gets closed, the final status gets recorded into a transaction and broadcasted to the network.
So, in this case 18 on-chain transactions were avoided, only the funding and withdrawing transaction were on-chain.

Now, imagine person C. He opens a channel with person A.
He can now send 0.1 BTC to person B, since person A has an open channel with person B, and the channel is still funded. So in reality, person C sends 0.1 BTC offchain to person A, person A sends 0.1 to person B, so person B receives the 0.1 BTC that was sent by person C. Person's C available funds are reduced by 0.1 BTC, person A still has the same amount of funds as before the transaction, person B has 0.1 BTC more than before the transaction (fees were not taken into account with this very simplistic example)

When sufficient people have open (funded) channels with eachother, you can basically send funds over the lightning network to any person that has at least 1 or 2 open channels. Each node in the network can add a tiny fee, but it is also possible to minimise the fee by calculating the optimal path between 2 nodes/wallets/people.

mondrany
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
January 25, 2018, 02:50:54 PM
 #5

Well, very, very, very, very dumbed down and simplified, the lightning network is basically something like this:

Person A opens a payment channel with person B. Person A funds the channel using an on-chain transaction of (for example) 10 BTC.
Person A can now send (for example) 50 offchain transactions of ~0.1BTC to person B (for example, person A has a ipTV subscription with person B, and he pays 0.1 BTC/month for his subscription, every month). Everytime, the status of the channel gets adapted with an offchain transaction.
If, in the end, the channel gets closed, the final status gets recorded into a transaction and broadcasted to the network.
So, in this case 48 on-chain transactions were avoided, only the funding and withdrawing transaction were on-chain.

Now, imagine person C. He opens a channel with person A.
He can now send 0.1 BTC to person B, since person A has an open channel with person B, and the channel is still funded. So in reality, person C sends 0.1 BTC offchain to person A, person A sends 0.1 to person B, so person B receives the 0.1 BTC that was sent by person C. Person's C available funds are reduced by 0.1 BTC, person A still has the same amount of funds as before the transaction, person B has 0.1 BTC more than before the transaction (fees were not taken into account with this very simplistic example)

When sufficient people have open (funded) channels with eachother, you can basically send funds over the lightning network to any person that has at least 1 or 2 open channels. Each node in the network can add a tiny fee, but it is also possible to minimise the fee by calculating the optimal path between 2 nodes/wallets/people.

Thanks for your explanation mocacinno!
mocacinno
Legendary
*
Offline Offline

Activity: 1736
Merit: 1796


https://unblur.ninja =>lightning network testsite


View Profile WWW
January 25, 2018, 03:58:10 PM
 #6



Thanks for your explanation mocacinno!

No problem Smiley
Do realise that this is a seriously flawed explanation i dumbed down to give a basic idear of what the lightning network is... I even had to correct a mistake i made during the creation of the post.

I myself only started experimenting with the lightning network for less than 2 weeks, i don't know all the in's and out's yet either, but i'm slowly gaining knowledge.

If you want to experiment, setting up a lightning network node is really easy... Just get yourself a small linux VPS (or install linux on your pc), install a bitcoin core deamon, sync it with the testnet, then compile https://github.com/ElementsProject/lightning and follow their very basic how-to tutorial... It took me about 2 hours to set everything up (granted, i already had a bitcoin testnet node running, so i didn't have to sync the testnet blockchain), i ran into some problems, but cdecker helped me out Smiley
In my opinion, the best way to learn about a technology is to get some hands-on experience, and since bitcoin has a pretty stable testnet, you can get this hands-on experience without risking any real BTC (losing tBTC is not really a problem)

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!