Pages:
Author

Topic: Basics of the Lightning Network (Read 2321 times)

hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
September 01, 2021, 08:06:13 AM
#49
Right, but still that 2nd layer is always relying and depending on the first layer, otherwise what kind of "2nd" layer is that? Wink
i guess the point of garlonicon was not that the 2nd layer doesn't depend on the 1st layer, but that the onboarding of new users will be possible without touching the 1st layer directly (still depending on it)
Oh yes, I guess that can be technically implemented.
But I wanted to clarify, through all of his "still relies", "some dependencies", "for now" etc. that LN very much depends and forever will be based and secured by, L1. Even if you might be able to onboard users without a new Bitcoin transaction every time.

This goes a bit into another topic, but this is a general LN thread so I guess it's fine: In my personal opinion, we should be good with the current setup for years to come. With SegWit and long-living LN channels, it shouldn't be needed to create channels without BTC transaction, even if millions of people join Bitcoin. One transaction per person (and everything after that mostly via LN) should easily be handled by the Blockchain as long as they don't all join at once Wink
full member
Activity: 154
Merit: 177
September 01, 2021, 08:00:00 AM
#48
Right, but still that 2nd layer is always relying and depending on the first layer, otherwise what kind of "2nd" layer is that? Wink
i guess the point of garlonicon was not that the 2nd layer doesn't depend on the 1st layer, but that the onboarding of new users will be possible without touching the 1st layer directly (still depending on it)
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
September 01, 2021, 07:49:20 AM
#47
Quote
I don't see how it will ever change
There are other second layers where they are connected with the first layer, but where introducing new people does not require creating on-chain transaction. Now, you cannot receive LN coins if you don't have any LN channel, you need on-chain transaction for that. Maybe things like Pedersen Commitments could solve that issues in the future, because I can imagine a network where there are on-chain transactions moving coins from and into some second layer, but where everything else can happen directly inside that second layer. Also, as far as I know, in Litecoin Mimble Wimble Extension Blocks will be made in that way: only sending between new and old addresses will need mainchain transaction, everything else will happen inside Extension Blocks, so maybe in LN it will be also possible in the future. Also, Paul Sztorc's Thunder Network will allow introducing new people to the second layer directly: https://www.truthcoin.info/blog/thunder/. Technically speaking, it is possible for other second layers, so it may be also possible for LN.
Right, but still that 2nd layer is always relying and depending on the first layer, otherwise what kind of "2nd" layer is that? Wink
hero member
Activity: 813
Merit: 1944
September 01, 2021, 07:41:46 AM
#46
Quote
The reason why it's not a BIP is that it's not a change to Bitcoin whatsoever.
https://lists.linuxfoundation.org/pipermail/bitcoin-dev/2021-April/018858.html
Quote
Lightning itself really should be a series of BIPs.

Quote
I don't see how it will ever change
There are other second layers where they are connected with the first layer, but where introducing new people does not require creating on-chain transaction. Now, you cannot receive LN coins if you don't have any LN channel, you need on-chain transaction for that. Maybe things like Pedersen Commitments could solve that issues in the future, because I can imagine a network where there are on-chain transactions moving coins from and into some second layer, but where everything else can happen directly inside that second layer. Also, as far as I know, in Litecoin Mimble Wimble Extension Blocks will be made in that way: only sending between new and old addresses will need mainchain transaction, everything else will happen inside Extension Blocks, so maybe in LN it will be also possible in the future. Also, Paul Sztorc's Thunder Network will allow introducing new people to the second layer directly: https://www.truthcoin.info/blog/thunder/. Technically speaking, it is possible for other second layers, so it may be also possible for LN.
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
September 01, 2021, 07:13:58 AM
#45
Quote
when lightning was bipped into the bitcoin network?
It was never bipped, some people believe that it should be, maybe it will be in the future, but for now it is not.
The reason why it's not a BIP is that it's not a change to Bitcoin whatsoever. It just utilizes and relies on the Bitcoin network, of course.
https://en.bitcoin.it/wiki/Bitcoin_Improvement_Proposals
Quote
or is it a different layer as layer 2 scalability suggests?
It is some kind of second layer, but it still has many dependencies on the first layer, for example introducing every user to the second layer needs on-chain transaction (for now).
I would like to clarify this a little: it doesn't just "still" have some "dependencies" on first layer and "for now" - Lightning channels are created through normal Bitcoin transactions (hence no BIP needed) and the security of your funds lies in the fact that you can at any time close the channel (through another Bitcoin transaction) to transfer them to your Bitcoin address. It is thus highly interconnected with the Bitcoin blockchain and completely relying on it. It would simply not work without the first layer that is Bitcoin. This is the core foundation of Lightning, so I don't see how it will ever change (opposed to the 'still' and 'for now' additions in @garlonicon's reply) without fundamentally changing what Lightning Network is.
copper member
Activity: 821
Merit: 1992
Pawns are the soul of chess
August 31, 2021, 11:49:36 PM
#44
Quote
when lightning was bipped into the bitcoin network?
It was never bipped, some people believe that it should be, maybe it will be in the future, but for now it is not.
Quote
Was it hard forked
No, implementing LN was possible after Segwit (which was a soft fork), because signatures were detached from calculating transaction hash.
Quote
or is it a different layer as layer 2 scalability suggests?
It is some kind of second layer, but it still has many dependencies on the first layer, for example introducing every user to the second layer needs on-chain transaction (for now).
newbie
Activity: 17
Merit: 7
August 31, 2021, 09:06:37 PM
#43
The development of Lightning excites me more than its implementation. Does anyone know when lightning was bipped into the bitcoin network? Was it hard forked or is it a different layer as layer 2 scalability suggests? Either way I can likely find more material surfing the web  thanks  Cool
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
August 31, 2021, 05:27:35 PM
#42
@Rath_ Hey, I'd like to have Phoenix and Breez added to the iOS Clients list!

I tested both for months and still use both regularly for transactions and onboarding new users!
I prefer to onboard with Phoenix, since it recently finally launched on the official AppStore, where everyone can download it.

Instead, Breez has more functionality, like sending to on-chain addresses (submarine swapping outwards) and shows all lnd functions in a  'developer menu' so you can manually fix stuff if things go south. However, it's not yet on the AppStore, but still available for everyone through the TestFlight Beta. It's still a slight hurdle for non-tech savvy users, so to those I always recommend Phoenix.
member
Activity: 75
Merit: 22
December 03, 2020, 06:48:43 PM
#41
Hi everyone,
I may have an idea that could significantly improve the lightning network if it works. I'd like to share it with you.

The proposed improvements are:
-Anyone could connect to several nodes on the same payment channel then go offline without disrupting the channel.
-We would only need the public key of the people we want to connect with to start a channel with them.
-The LN users would be able to make instant withdrawals with the cooperation of their peers.

For now let's call it the multidirectional payment channel. I didn't introduce any line of code which I will be working on asap but you can understand the logical pretty easily.

Channel opening: One of the participants opens the channel by transferring any amount of coins to a new multi-signature wallet. For security reasons the creator of the wallet (or the main user) must set a limit on the withdrawal fees (this restriction can be overruled with the signature of all the participants).
Deposits/withdrawals: Only the creator of the wallet can fund the channel but any participant can withdraw their coins. The withdrawals can be validated by one participant or by all the participants (the funds will be temporarily frozen unless the transaction is signed by everyone).
Payments: To make a transaction the payer must sign a payment to the payee then have it signed by all the other participants (they will actually sign their new balance on the channel). The main user does not have to validate the payments of the other users (so he  can go offline and it will not affect anyone).
Security: All the channel participants must protect themselves against fraud by verifying the payments that are made from their wallet. Any user can invalidate a fraudulent transaction with a penalty transaction and prevent the cheater from withdrawing more funds. A transaction can no longer be invalidated after the funds are unfrozen.


DISPUTE RESOLUTION CLAUSE

The case can be resolved at any of these steps (a delay for reply has to be determined):

1-User 1 makes a withdrawal.
2-Any user posts a penalty transaction to invalidate User 1’s withdrawal.
3-User 1 sends the latest lightning payment that was signed to him to prove that he has enough funds for his withdrawal.
4-Any user posts a more recent payment signed by User 1 to invalidate his proof.

A few important things to mention..
1.The creator of the wallet basically signs the total balance of the other users when he makes a payment and the other users sign their own total balance when they send him a payment. Therefore he doesn’t need to know the balance of each participant as he can invalidate a withdrawal by simply proving that the user who is making it is spending his coins (on the opposite side the other participants can invalidate his withdrawals by proving that he’s trying to spend their coins).  
2.The public key of any cheater will be removed from the channel (the coins on his channel will be transferred to a new wallet where his key is removed).
3.A withdrawal does not close the channel (the user who makes it must return the amount he owes to the other users).
4.A penalty transaction does not need to include any proof against the targeted user if he is not the main user (that is simply because there could be no proof if the targeted user has never made a payment).

The concept seems to work in theory but I don't know if it is feasible in practical.. maybe someone more knowledgeable can answer that:o. Thank you all for paying attention and hopefully we can do something with this! Grin
legendary
Activity: 1876
Merit: 3132
November 03, 2020, 02:01:55 PM
#40
I have reviewed and updated the first post. I got rid of outdated information and made the explanations easier to understand. Feel free to suggest what other information should be included in this thread. I think there might be too little information in the "Creating a payment channel" section, but I can't come up with any idea. The old version of this thread is available here.
legendary
Activity: 3430
Merit: 3080
December 02, 2019, 09:22:26 AM
#39
unlike Altcoin mining, your GPUs won't be running at full load, so just consider the regular power consumption of your rig.

it may never submit your node hardware to the load that mining does, but for a node routing 100-10,000 payments per day, I dunno, maybe the w/h might start to become significant. Difficult to judge at this stage, as there clearly aren't enough payments over Lightning to expect that kind of load, but in time that kind of routing volume will be possible. We also don't know how efficient routing algorithms will become, or exactly how the network will stratify along the lines of routing v.s. non-routing nodes (the need for the "trampoline node" concept implies this will happen to some extent)
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
December 01, 2019, 11:21:06 PM
#38
I would like to ask what is the cost of maintaining a Lightning Node? Or to be more specific, is it possible to calculate the potential cost? Like for Bitcoin Mining, the cost could be roughly estimated based on the kW/hr of electric bills.
Yes, like that.
But unlike Altcoin mining, your GPUs won't be running at full load, so just consider the regular power consumption of your rig.

BTW, next time, check the date of the topic that you're replying.
But this one IMO might be needing a bump.
legendary
Activity: 1876
Merit: 3132
July 09, 2019, 04:24:55 AM
#37
I made a few adjustments to this topic. I removed some information regarding wallets which need to be constantly updated. By the end of the month, I will publish a new thread about Lightning Network wallets.

Watchtowers – it is possible that the second party will attempt to cheat by broadcasting an old state of the payment channel. Normally, this would not be possible since the other node would broadcast a penalty transaction. To prevent frauds, the concept of watchtowers is being developed. Watchtowers will be able to broadcast a penalty transaction if necessary.

I have already explained in other threads that LND has introduced support for altruist watchtowers which don't take a cut if one party attempts to cheat. More features and varieties of watchtowers will be available in future updates.

there is no standard for safe backup

And it looks like there won't be anytime soon. Each implementation has its own backup solution. Eclair Mobile allows user to back up their channel state to Google Drive while LND and Eclair (desktop) support data loss protection and manual backups.
legendary
Activity: 2744
Merit: 1708
First 100% Liquid Stablecoin Backed by Gold
April 08, 2019, 03:53:27 AM
#36
...there's no clear indicator/feature to classify blockchain generation which proves "blockchain generation" only a buzzword...
I agree with you that this is a buzz word but shall I don't use it because of that?

Like I said:
Quote
Like many others, I call them Gen4 but there is still debate if this is still 3rd blockchain generation or already fourth. Or even if there are generations of the blockchain at all?
legendary
Activity: 2744
Merit: 1708
First 100% Liquid Stablecoin Backed by Gold
April 08, 2019, 03:50:51 AM
#35
there is still debate if this is still 3rd blockchain generation or already fourth

there is no such (credible) debate

And what makes the debate especially about cryptocurrencies or blockchain credible?
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
April 07, 2019, 11:22:40 AM
#34
there is still debate if this is still 3rd blockchain generation or already fourth

there is no such (credible) debate

Additionally, there's no clear indicator/feature to classify blockchain generation which proves "blockchain generation" only a buzzword.

From what i've seen, most generation discussion only focus fancy features or output/throughput (such as high TX/s), not efficiency, decentralization, security or immutability.
legendary
Activity: 3430
Merit: 3080
April 07, 2019, 06:37:04 AM
#33
there is still debate if this is still 3rd blockchain generation or already fourth

there is no such (credible) debate
legendary
Activity: 2744
Merit: 1708
First 100% Liquid Stablecoin Backed by Gold
April 07, 2019, 05:40:50 AM
#32
GEN4 cryptocurrencies? What are they?
Meaningless marketing buzzword bullshit.   Grin...

Like many others, I call them Gen4 but there is still debate if this is still 3rd blockchain generation or already fourth. Or even if there are generations of the blockchain at all?

In the crypto world, everything is constantly evolving, sometimes so fast that we don't add up with how to call or name it.

English is not my first language and when I translate crypto related text to Polish I have many times to figure out how to call things properly because such words even don't exist in our language and there are no professional translations available yet.

Many times we have just to agree on something and I think this is the case with how or if to call different blockchains as different generations or something else.

There are differences between blockchains for sure.
legendary
Activity: 2744
Merit: 1708
First 100% Liquid Stablecoin Backed by Gold
April 07, 2019, 05:18:32 AM
#31
it's completely meaningless marketing rhetoric

if you believe it, you deserve to lose anything you invest

Never said I believe in such marketing rhetoric.

I just answered your question about the 4th generation blockchain cryptocurrencies as best as I could.
legendary
Activity: 3430
Merit: 3080
April 06, 2019, 04:26:12 AM
#30
GEN4 cryptocurrencies? What are they?
Like many others, I like to call them Gen4 but there is still debate if this is still 3rd blockchain generation or already fourth.
Quote
It’s not entirely clear what 4th generation blockchains are. Possibly, they are 3rd generation blockchains with lots of improvements through A.I. technology. Some of these are Matrix AI, Deep Brain Chain, SingularityNet, Multiversum, Insolar
You can read more about the 4th generation of blockchain and the best projects HERE

it's completely meaningless marketing rhetoric

if you believe it, you deserve to lose anything you invest
Pages:
Jump to: