0
If I am wrong, please correct me.
If we simplify Lightning Network, it seems to work similar to this simple unidirectional payment channel between two parties (although, Lightning Network is a bidirectional).
So we may simplify the process of a payment between two parties in Lightning Network as follows:
(1) the sender and recipient just need to create a channel and deploy the contract and then the sender puts the recipient's address in the contract as recipient.
(2) Then any agreed number of off-chain transactions will be done between sender and recipient such that the sender's address for each mico-payment will be verified by recipient.
(3) Eventually, a settlement will be done via an on-chain transaction, by which the recipient will receive the total amount the contract.
In a first view, it seems no need for "routing" process.
So, can we now ask that why do we need a routing process for performing a payment in Lightning Network?
P.S. I refer you to the Lightning Network website, where it's mentioned that:
"By creating a network of these two-party ledger entries, it is possible to find a path across the network similar to routing packets on the internet."
Note: The payment channels are composable, meaning that If A and B have a payment channel, and B and C have another, then A can pay C through B. But the matter is that there is a fee incentive for intermediaries. Now the question is which one is more affordable?
(1) Doing like above approach?
Or
(2) A and C create another channel between themselves without paying to B and without need for routing ?
So, the answer of necessity of need for a routing process in Lightning Network is dependent on affordability of paying to one or multiple intermediaries instead of paying for a new direct channel without intermediary?
5The point of LN is that it is not just a 2-party channel; it is a network of interconnected channels, so that if A is connected to B, and B is connected to C, A can pay C. – Pieter Wuille – 2018-11-27T18:49:23.897
Yes, exactly, such that channels are composable: _If A and B have a payment channel, and B and C have another, then A can pay C through B._But the matter is that there is a fee incentive for intermediaries. Now the question is which one is more affordable? (1) Doing like above approach? Or (2) A and C create another channel between themselves without paying to B and without need for routing ? Thanks – Questioner – 2018-11-27T18:59:43.840
1That's not the question you started out with. So why are you asking two different questions? Also you do know that creating a channel costs you on chain transaction fees, right? – Jannes – 2018-11-27T19:25:45.280
@Jannes , Yes, I know that, but as I asked, which one is affordable ? paying for a new channel? or paying for an intermediary? If paying for intermediary is more affordable, then we need for a routing process. So, it's related to my first question: Why do we need for a routing process in LN? The answer is dependent on affordability of paying to one or multiple intermediaries instead of paying for a new direct channel without intermediary? – Questioner – 2018-11-27T19:34:06.323
3It's not just about affordability. Creating a channel requires locking up on-chain funds. As they are a finite resource, it's infeasible to expect a channel between any two participants that want to interact through Lightning. – Pieter Wuille – 2018-11-27T19:44:21.897
@Pieter Wuille , Good, so, routing is unavoidable. Thanks – Questioner – 2018-11-27T19:47:28.793