All transactions that are sent between the two parties in a channel are valid bitcoin transactions, and they can be used to close the channel at any time by either party.
When a channel is opened, those bitcoins are locked up in that channel until it is closed with a spending transaction, sending an agreed amount of bitcoin to each party in the channel. Initially this spending transaction is created to return the same amount of bitcoin that each party put in to the channel. But 'transactions' are made, which is really just each party agreeing to create new spending transactions to replace the old one, giving each party a different amount.
If each party, for example, locks in 1 BTC to a channel, they will also create a spending transaction at the same time returning that 1 BTC to each person. Then let's say person A wants to send 0.2 BTC to person B. To do this, they simply work together to create a new valid spending transaction to replace the old one, the new one would pay A 0.8 BTC and B 1.2 BTC, effectively transferring that 0.2 BTC from A to B. New transactions like this are continually created every time either person wants to send coins, until finally one of the two participants wishes to close the channel and actually get their BTC back. This also happens if one party stops responding/cooperating. The final transaction they agreed upon is broadcast to the actual blockchain, closing the channel and paying both participants.
Thus, at all times, the transactions are valid and the actual bitcoins being exchanged are locked up in the blockchain, so there is no way for anyone to double-spend the transactions.
But what is the news here? who guarantees that the concluding transaction in the channel will be added to the blockchain in a timely manner? and what if in 2020 it takes 10 months to get 3 approval (even for lightning channels as it seems to be yet another client of the network)? – Nir O. – 2017-12-14T17:18:30.700
Some hope is in the fact that with fewer on-chain transactions (more lightning adoption), there will be less congestion and so transactions will confirm faster. But it is likely some more on-chain scaling will take place too in the coming years – MeshCollider – 2017-12-14T23:17:18.330
So that means: You have to block your coins for a channel. So, you can't use them for other things. So basically: I can't work with my coin. I can't trade them, I can't spend them. They stock in this channel. Is that correct? – Citrullin – 2017-12-29T23:08:18.803
@PhilippBlum no! You trade them within the lightning network! You just don't update the blockchain until the channel closes – MeshCollider – 2017-12-30T02:45:09.367
@MeshCollider I understand this. But you can only spend this to one party. Let's say, you have something where you have 20 transactions per month. So, but it is to low to spend everytime transaction fees. So, you open a channel. So now you have to block some coins to this channel. You cannot use this coins for another channel or the blockchain, right? So they are blocked for one month. – Citrullin – 2017-12-31T07:00:50.353
Once locked in a channel, they can only be used on the lightning network yes, until the channel is closed (which can happy at any time if users cooperate, normally you don't need to wait 1 month). But you can send them anywhere on the network by routing payments through other channels created by other users, you aren't limited to sending to just the other user in the channel – MeshCollider – 2017-12-31T08:03:35.313
But that one party may then relay the payment to a third aprty. Generally assume that you will lock up "significant" funds with one hub (significant: not a coffe but your hot wallet) and the hub will then have many channels open to many users and other hubs. And also assume you do NOT regularly close the channel every other week. You can spend them - on lightning. You can trade - because it is assumed that guess what, exchanges will accept lightining transfers. Basically: a LN channels "is" a hot wallet. – TomTom – 2018-07-01T21:45:50.527