<oembed><type>rich</type><version>1.0</version><author_name>npub1aslmpzentw224n3s6yccru4dq2qdlx7rfudfnqevfck637cjt6esswfqmx</author_name><author_url>https://nostr.ae/npub1aslmpzentw224n3s6yccru4dq2qdlx7rfudfnqevfck637cjt6esswfqmx</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2020-10-18&#xA;📝 Original message:&#xA;&gt;&#xA;&gt; &gt; We&#39;ve looked at all kinds of trustless payment schemes to keep users&#xA;&gt;&#xA;&gt; &gt; honest, but it appears that none of them is satisfactory. Maybe it is&#xA;&gt; even&#xA;&gt; &gt; theoretically impossible to create a scheme that is trustless and has&#xA;&gt; all&#xA;&gt; &gt; the properties that we&#39;re looking for. (A proof of that would also be&#xA;&gt;&#xA;&gt; &gt; useful information to have.)&#xA;&gt;&#xA;&gt; I don&#39;t think anyone has drawn yet a formal proof of this, but roughly a&#xA;&gt; routing peer Bob, aiming to prevent resource abuse at HTLC relay is seeking&#xA;&gt; to answer the following question &#34;Is this payment coming from Alice and&#xA;&gt; going to Caroll will compensate for my resources consumption ?&#34;. With the&#xA;&gt; current LN system, the compensation is conditional on payment settlement&#xA;&gt; success and both Alice and Caroll are distrusted yet discretionary on&#xA;&gt; failure/success. Thus the underscored question is undecidable for a routing&#xA;&gt; peer making relay decisions only on packet observation.&#xA;&gt;&#xA;&gt; One way to mitigate this, is to introduce statistical observation of&#xA;&gt; sender/receiver, namely a reputation system. It can be achieved through a&#xA;&gt; scoring system, web-of-trust, or whatever other solution with the same&#xA;&gt; properties.&#xA;&gt; But still it must be underscored that statistical observations are only&#xA;&gt; probabilistic and don&#39;t provide resource consumption security to Bob, the&#xA;&gt; routing peer, in a deterministic way. A well-scored peer may start to&#xA;&gt; suddenly misbehave.&#xA;&gt;&#xA;&gt; In that sense, the efficiency evaluation of a reputation-based solution to&#xA;&gt; deter DoS must be evaluated based based on the loss of the reputation&#xA;&gt; bearer related to the potential damage which can be inflicted. It&#39;s just&#xA;&gt; reputation sounds harder to compute accurately than a pure payment-based&#xA;&gt; DoS protection system.&#xA;&gt;&#xA;&#xA;I can totally see the issues and complexity of a reputation-based system.&#xA;With &#39;trustless payment scheme&#39; I meant indeed a trustless pure&#xA;payment-based DoS protection system and the question whether such a system&#xA;can be proven to not exist. A sender would pay an up-front amount to cover&#xA;the maximum cost, but with the guarantee that nodes can only take a fair&#xA;part of the deposit (based on actual lock time). Perhaps the taproot&#xA;upgrade offers new possibilities with adaptor signatures to atomically swap&#xA;part of the up-front payment with htlc-received-in-time-signatures from&#xA;nodes downstream (random wild idea).&#xA;&#xA;&#xA;&gt; &gt; What I can see working is a system where peers charge each other a hold&#xA;&gt; fee&#xA;&gt; &gt; for forwarded HTLCs based on the actual lock time (not the maximum lock&#xA;&gt;&#xA;&gt; &gt; time) and the htlc value. This is just for the cost of holding and&#xA;&gt; separate&#xA;&gt; &gt; from the routing fee that is earned when the payment settles&#xA;&gt;&#xA;&gt; Yes I guess any solution will work as long as it enforces an asymmetry&#xA;&gt; between the liquidity requester and a honest routing peer. This asymmetry&#xA;&gt; can be defined as guaranteeing that the routing peer&#39;s incoming/outgoing&#xA;&gt; balance is always increasing, independently of payment success. Obviously&#xA;&gt; this increase should be materialized by a payment, while minding it might&#xA;&gt; be discounted based on requester reputation (&#34;pay-with-your-reputation&#34;).&#xA;&gt; This reputation evaluation can be fully delegated to the routing node&#xA;&gt; policy, without network-wise guidance.&#xA;&gt;&#xA;&gt; That said, where I&#39;m skeptical on any reputation-heavy system is on the&#xA;&gt; long-term implications.&#xA;&gt;&#xA;&gt; Either, due to the wants of a subset of actors deliberately willingly to&#xA;&gt; trade satoshis against discounted payment flow by buying well-scored&#xA;&gt; pubkeys, we see the emergence of a reputation market. Thus enabling&#xA;&gt; reputation to be fungible to satoshis, but with now a weird &#34;reputation&#34;&#xA;&gt; token to care about.&#xA;&gt;&#xA;&gt; Or, reputation is too hard to make liquid (e.g hard to disentangle pubkeys&#xA;&gt; from channel ownership or export your score across routing peers) and thus&#xA;&gt; you now have reputation scarcity which is introducing a bias from a &#34;purer&#34;&#xA;&gt; market, where agents are only routing based on advertised fees. IMO, we&#xA;&gt; should strive for the more liquid Lightning market we can, as it avoids&#xA;&gt; bias towards past actors and thus may contain centralization inertia. I&#39;m&#xA;&gt; curious about your opinion on this last point.&#xA;&gt;&#xA;&#xA;I am in favor of more liquidity and less centralization, but as far as I&#xA;know the reality is that we don&#39;t have a good solution yet to achieve this&#xA;without being vulnerable to DoS attacks. If those attacks would happen on a&#xA;large scale today, what would we do?&#xA;&#xA;Also peers can implement these trusted upfront payments without protocol&#xA;changes. Just stop forwarding when the prepaid forwarding budget is used up&#xA;and require a top-up. It may have been implemented already in parts of the&#xA;network, I don&#39;t think there is a way to know. I&#39;ve experimented a bit with&#xA;the fee model myself (&#xA;https://twitter.com/joostjgr/status/1317546071984427009). Node operators&#xA;don&#39;t need to wait for permission.&#xA;&#xA;To me it seems that the longer it takes to come up with a good anti-DoS&#xA;system for Lightning, the further the outside world will have developed&#xA;their trust-based systems and established that potential bias towards&#xA;centralization.&#xA;&#xA;That might be another reason to prioritize this issue. Not just because we&#xA;want the network to be safe, but also to be able to implement the preferred&#xA;solution while the opportunity window is still open.&#xA;&#xA;- Joost&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20201018/6af64b5a/attachment.html&gt;</html></oembed>