<oembed><type>rich</type><version>1.0</version><title>Anthony Towns [ARCHIVE] wrote</title><author_name>Anthony Towns [ARCHIVE] (npub17r…x9l2h)</author_name><author_url>https://yabu.me/npub17rld56k4365lfphyd8u8kwuejey5xcazdxptserx03wc4jc9g24stx9l2h</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>📅 Original date posted:2019-11-08&#xA;📝 Original message:&#xA;On Fri, Nov 08, 2019 at 01:08:04PM +1030, Rusty Russell wrote:&#xA;&gt; Anthony Towns &lt;aj at erisian.com.au&gt; writes:&#xA;&gt; [ Snip summary, which is correct ]&#xA;&#xA;Huzzah!&#xA;&#xA;This correlates all the hops in a payment when the route reaches its end&#xA;(due to the final preimage getting propogated back for everyone to justify&#xA;the funds they claim). Maybe solvable by converting from hashes to ECC&#xA;as the trapdoor function?&#xA;&#xA;The refund amount propogating back also reveals the path, probably.&#xA;Could that be obfusticated by somehow paying each intermediate node&#xA;both as the funds go out and come back, so the refund decreases on the&#xA;way back?&#xA;&#xA;Oh, can we make the amounts work like the onion, where it stays constant?&#xA;So:&#xA;&#xA;  Alice wants to pay Dave via Bob, Carol. Bob gets 700 msat, Carol gets&#xA;  400 msat, Dave gets 300 msat, and Alice gets 100 msat refunded.&#xA;&#xA;  Success:&#xA;    Alice forwards 1500 msat to Bob   (-1500, +1500, 0, 0)&#xA;    Bob forwards 1500 msat to Carol   (-1500, 0, +1500, 0)&#xA;    Carol forwards 1500 msat to Dave  (-1500, 0, 0, +1500)&#xA;    Dave refunds 1200 msat to Carol   (-1500, 0, +1200, +300)&#xA;    Carol refunds 800 msat to Bob     (-1500, +800, +400, +300)&#xA;    Bob refunds 100 msat to Alice     (-1400, +700, +400, +300)&#xA;&#xA;  Clean routing failure at Carol/Dave:&#xA;    Alice forwards 1500 msat to Bob   (-1500, +1500, 0, 0)&#xA;    Bob forwards 1500 msat to Carol   (-1500, 0, +1500, 0)&#xA;    Carol says Dave&#39;s not talking&#xA;    Carol refunds 1100 msat to Bob    (-1500, +1100, +400, 0)&#xA;    Bob refunds 400 msat to Alice     (-1100, +700, +400, 0)&#xA;&#xA;I think that breaks the correlation pretty well, so you just need a&#xA;decent way of obscuring path length?&#xA;&#xA;In the uncooperative routing failure case, I wonder if using an ECC&#xA;trapdoor and perhaps scriptless scripts, you could make it so Carol&#xA;doesn&#39;t even get an updated state without revealing the preimage...&#xA;&#xA;Cheers,&#xA;aj</html></oembed>