Research/Bitcoin Dev Archive / lightning-dev list
Nucleus: Capital-efficient multipeer Lightning payment channels
6 messages, Aug 20 to 30, 2023. Started by Atomic Mr Nuclear.
Atomic Mr Nuclear (3), ZmnSCPxj (2), David A. Harding
Dear community,
In the attachment you will find a new proposal for Lightning multipeer payment channels which provides better capital efficiency (no inbound liquidity is required) and liveness (up to half of peers may go offline and the channel can continue to operate). It also doesn't rely on a penalty mechanism and doesn't require the use of atomic swaps (HTLC, PTLC etc) and routed payments for scaling (peers can directly join the multipeer channel instead of establishing a network of channels locking in the liquidity).
----
Atomic Mr Nuclear
On 2023-08-20 16:25, Atomic Mr Nuclear wrote:
Quoted text (4 lines)
> Dear community, > > In the attachment you will find a new proposal for Lightning multipeer > payment channels
Hi,
Thanks for working on multiparty channel design. Quoting from the paper:
Quoted text (9 lines)
> in case some of the peers become unresponsive, the channel starts > operating with partial state updates > [...] > outputs in the [sub-]graph can be double-spend by their owners with > cooperation from the majority > [...] > this state is only temporary, since the channel security can be reset > to the fully trustless level by excluding uncooperative peers from the > channel.
I think it's worth mentioning two points:
1. That any construction dependent on an honest majority is not safe
when that majority can consist of untrusted peers. If Alice is in a
multiparty channel consisting of random peers, she cannot safely
accept payments in your construction without signatures from all
other participants in the channel ("full state updates").
2. The exclusion of uncooperative peers requires getting confirmed three
onchain transactions, one of which has one output for every original
participant and one which has one input for every cooperative
participant; that sounds like a lot of onchain data to me. Until
those transactions have confirmed to a sufficient depth, Alice cannot
safely accept payments in a channel with uncooperative peers (where
she does not trust a majority of all peers). That sounds too
expensive and too slow for an alternative to Lightning.
Given those two points, I don't think anyone desiring trustless payments can use "partial state updates". Without partial updates, your proposal requires participants go onchain in an expensive way any time even one participant becomes uncooperative, which feels to me to be inferior to the existing designs for channel factories and multiparty channels that you cite.
I would love to learn if I'm missing something and I appreciate the obvious effort you put into your paper. If you continue to innovate in the field, I would highly encourage you to review the work posted to the Lightning-Dev mailing list over the past year or so by John Law as I feel you might find his own solutions for some of the same problems inspiring (some links to his work are collected and summarized here[1]).
Thanks,
-Dave
Dear David,
Thank you very much for your time reading and analyzing the work.
You are correct that the design relies on the honest majority assumption. However, I disagree that it restricts the usability of the proposal, due to the following considerations.
1. Any distributed system consensus, including bitcoin PoW consensus, relies on the same (honest majority) or a stronger (hones 2/3) assumption; and for some cases even 1/3 can break the consensus conditions (like with selfish mining); so the untrusted peer networks are not something which by definition requires stronger guarantees.
2. In the case of the proposed protocol, the only thing that relies on the the honest majority is the safety of funds that a peer _has received_ during the operations when some of the peers were unresponsive. This risk is fully controllable by the peer (he may not accept such transfers or limit their volume to some accepted risk level) and is just a different tradeoff to the risks of the existing lightning network (like the possibility of the loss of funds when going offline and revealing an invalid state).
3. These risks can be further efficiently mitigated by a reputation system or a stake put by the peers joining multipeer channel - which can be a topic of a further protocol development.
Regarding your second argument that the exclusion of a peer takes three onchain transactions, it is not correct: nonvoluntary exclusion takes just two transactions: current allocation and new funding. No other protocol proposes cheaper (in terms of transaction size) non-voluntary exclusion. Finally, the proposal can be combined with the original channel factories idea where Nucleus channels can be created via a channel factory, avoiding and onchain footprint for a non-voluntary exclusion process.
Thank you for the reference to the previous John Law research, I was aware that it is a different form of approach with different tradeoffs compared to the approach taken in the proposed Nucleus protocol.
Kind regards, the author of the proposal
Good morning Mr Nuclear,
Quoted text (9 lines)
> You are correct that the design relies on the honest majority assumption. > However, I disagree that it restricts the usability of the proposal, > due to the following considerations. > > 1. Any distributed system consensus, including bitcoin PoW consensus, > relies on the same (honest majority) or a stronger (hones 2/3) assumption; > and for some cases even 1/3 can break the consensus conditions (like with > selfish mining); so the untrusted peer networks are not something which > by definition requires stronger guarantees.
The major difference here is that for PoW, it is impossible to create a "sybil attack" where you only need to spin up multiple nodes on AWS containers, each with its own identity. For PoW, every such node requires its own continuous hashpower; on Lightning, each such node can be generated by simply incrementing a 256-bit number.
Thus, the honest majority assumption can **only** be relied on if you have ***some*** sybil-resistance. PoW *is* the sybil-resistance that Bitcoin uses.
In short: you can only reason "I think, therefore I am", but you cannot from there derive that others exist; you MUST assume that there are only two entities: yourself, and the rest of the universe.
Without any sybil-resistance mechanism, it is entirely possible for me to run multiple nodes, then vote you out of your funds. There is a reason why every non-custodial trust-minimized multiparticipant offchain mechanism requires n-of-n.
Regards, ZmnSCPxj
Dear Mr Nucleus, and list,
Some more points:
* Miners in existing Bitcoin are only given the ability to reorder transactions, but not to outright spend funds.
This is why drivechains --- and recursive covenants, which, with some additional covenant features (that are more useful in general for covenants), could potentially enable a drivechain-like facility --- are contentious. Drivechains escrow some set of funds to the miners, allowing the miners to vote to outright spend those funds as they please.
Now you might say, that if a 51% miner already exists, it can easily censor any transaction, and you would be unable to spend your funds anyway, so would be no different from theft. The difference is that a miner (without drivechains) also cannot spend those funds and thus lowers the incentive to do this, but in addition to that, is the next point.
* Miners need to provide a proof external to what they are controlling --- that is, miners can be evicted.
Proof-of-work mining means that if a coalition of miners exists which is willing to censor, it is possible, theoretically, for honest non-censoring participants to acquire energy and hardware to perform mining. Indeed there is an incentive to do so --- censored transactions will increase their feerates because of lack of confirmation, and thus, there is incentive for a non-censoring miner to increase their hashrate (possibly from 0 --- every fullnode IS a miner, it is just that most fullnodes have 0 hashrate) in order to get paid the fee.
Proof-of-stake cannot evict, because once a coalition of stakers exists, they can censor new staking transactions. Thus, honest participants cannot break into a proof-of-stake scheme that has been captured by a majority of censoring stakers.
Your proposed scheme seems much more similar to proof-of-stake in this case. Once a much richer adversary is able to get more than 51% voting rights, by spinning up more capacity than you can --- it is helpful to remember that in the Real World, a lot of people have < 1% the personal net worth of the richest --- then they can prevent entry of honest participants into your personal Nucleus.
Thus:
* Nucleus nodes can be attacked by entities far richer than they are. * Those attackers can outright take the funds of the poorer participants.
Regards, ZmnSCPxj
((This message was originally sent only to ZmnSCPxj and not to the mail list due to a mistake))
Hi, ZmnSCPxj
Quoted text (9 lines)
> The major difference here is that for PoW, it is impossible to create a "sybil > attack" where you only need to spin up multiple nodes on AWS containers, each > with its own identity. > For PoW, every such node requires its own continuous hashpower; on Lightning, > each such node can be generated by simply incrementing a 256-bit number. > > Thus, the honest majority assumption can **only** be relied on if you have > ***some*** sybil-resistance. > PoW *is* the sybil-resistance that Bitcoin uses.
In fact, that is the exact opposite: in Bitcoin blockchain, you have a permissionless P2P layer, where both miners and users are pseudonymous and come from an open unknown set of participants. However, in the case of Lightning channel (including Nucleus), no external participant can stick in liquidity: this is a fully permissioned system, which requires 100% of participants to agree on the inclusion of a new participant. Thus, the protection from Sybil attack is much higher and can be based on mechanisms of reputation etc. - that is what I was pointing out in my reply to David Harding.
Quoted text (3 lines)
> In short: you can only reason "I think, therefore I am", but you cannot from > there derive that others exist; you MUST assume that there are only two > entities: yourself, and the rest of the universe.
In the case of Bitcoin - yes. In the case of Lightning channels - you always authorise each other participant.
Kind regards, me