Skip to content
LearnBitcoin

ResearchBitcoin Dev Archive lightning-dev list

Bandwidth in Lightning Network.

2 messages, Sep 1 to 2, 2021. Started by x raid.

x raid, ZmnSCPxj

Permalink First message in the Wayback Machine

x raid permalink original

Gentlemen,

The micropayment system that is LN today has some limitations in pathfinding with hops accommodating the needed liquidity with regards to larger amounts, where probability of success and the forward fee also needs to be accounted for in a total cost of attempt.

Probability and cost for xx M sats will not today have any gain compared to go on-chain.

If still in need and or requested to have tx in a near instantaneous settlement using LN regularly, one would have a setup of LN-Nodes in aggregate to facilitate tx with such profiles.

If Lady Gaga would like to send 0.6 to Madonna in a LN tx for remuneration of a designer purse, for Us to be able to facilitate that : We would need to onboard them first ...

If A would like to send 0.6 to B, in a non anticipated recurring flow, A would just go on-chain, or A would open a channel with --push amt to B, probability asserted and cost minimised.

In an anticipated recurring flow, I repeat -one would have a setup of LN-Nodes in aggregate to facilitate liquidity in such a scenario, as I am sure Baller and Bird ++ other biz already do today.

There is a proposal in changing the protocol to accommodate an algorithm to do pathfinding and spontaneously make larger payments possible in LN, where proposal fails directly in that it has a non real world scenario as argument.

Calculating total cost in a 0.6 balance transfer involving a MPP split to 500 120K tx to use a hop sequence as a-b-c-d, would require 4000 ledger entries ? ( 2 at each node ) in 1002 LN-Nodes and the probability of success is ≈ ?, with a ppm fee forward cost > then what We in the real world would use and spend today.

As an application developer wishing to use LN protocol pure and interoperable whole, I can see there are more pressing needs in refining existing protocol and implementations than spend wetware time on hypothetical non real world scenarios. Altho still amusing and stimulating as edutainment.

Thank you

/xraid

ZmnSCPxj in reply to x raid permalink original

Good morning xraid,

It helps to consider on-Lightning bitcoins as a substitute good for onchain bitcoins.

Converting to or from on-Lightning coins to onchain coins has a cost, either:

* Cost of channel open (converting onchain coins to on-Lightning coins) or channel close (converting on-Lightning coins to onchain coins).
* The use of services like Boltz, an exchange that facilitates conversion between on-Lightning and onchain coins, and which charges a fee.

Consider the case where Lady Gaga is already onboarded, and has on-Lightning bitcoins, and who would very much prefer that her onchain bitcoins are kept in a cold wallet that she ideally would never bring online in the foreseeable future. Lady Gaga wishes to pay 0.6BTC to Madonna, using the loose change in her Lightning wallet, and not have to go to the bank (cold storage wallet) to move funds around (because of risk of getting the keys online and potentially hacked). Madonna, as it happens, has a cold wallet with onchain bitcoins but has no ability to receive on-Lightning bitcoins.

Lady Gaga has two choices:

* Lady Gaga closes some channels to convert on-Lightning bitcoins to onchain bitcoins.
* Lady Gaga uses Boltz to convert on-Lightning bitcoins to onchain bitcoins.

Now, consider if Lady Gaga had, as is right and proper, decided to make multiple channels, in order to reduce counterparty risk (i.e. channel counterparties going offline, or deliberately impeding Lady Gaga->Madonna exchanges (because seriously Lady Gaga is sexier and Madonna should pay Lady Gaga for the privilege of existing) by raising fees for such transactions when they detect it). If so, the first option, closing channels, can be a significant amount of onchain activity. Lady Gaga would need to create multiple closing transactions, and *then* create a large (in vbytes) transaction consuming those closing transactions as inputs and outputting the amount to Madonna.

Alternately, with proper design of pathfinding algorithms, Lady Gaga can deliver the same amount of funds over the Lightning Network, to a Boltz Lightning node, and the Boltz service will then send the amount to Madonna. Boltz can aggregate multiple such transactions into a single onchain transaction, saving on onchain fees, and passing on some of those savings to Lady Gaga and other clients of Boltz.

Without a pathfinding algorithm that can deliver 0.6BTC from Lady Gaga to Boltz over Lightning, the second choice is impossible for Lady Gaga.

Now of course we could be using centralized brokers and avoid onchain fees entirely, but that risks censorship (just because Lady Gaga is sexier does not mean she is not allowed to purchase tacky purses from the inferior Madonna, even though a just and right universe would prevent such a transaction as inherent laws of physics). But the point of Lightning is an attempt to provide:

* Fast
* Cheap
* Reliable
* Non-censorable

payments. That is why attempts should still be made to keep this option open.

Regards, ZmnSCPxj