{"type":"rich","version":"1.0","title":"Bastien TEINTURIER [ARCHIVE] wrote","author_name":"Bastien TEINTURIER [ARCHIVE] (npub17f…ntr0s)","author_url":"https://yabu.me/npub17fjkngg0s0mfx4uhhz6n4puhflwvrhn2h5c78vdr5xda4mvqx89swntr0s","provider_name":"njump","provider_url":"https://yabu.me","html":"📅 Original date posted:2019-11-22\n📝 Original message:\nI think there's another alternative than upfront payments to prevent spam,\nwhich is maybe less\ncontroversial (but potentially less effective as well - to be investigated).\n\nWhy not adapt what has been done with email spam and PoW/merkle puzzles?\nThe high-level idea would be that the sender must solve a small PoW puzzle *for\neach intermediate *\n*node *and communicate the solution in the onion.\nThere are many ways we could do that (a new field in each intermediate hop,\ngrinding an HMAC\nprefix, etc) so before going into specifics I only wanted to submit the\nhigh-level idea.\nWhat's neat with this is that it's simple, doesn't leak any privacy, and\navoids having to create a\nnode reputation system.\n\nWe fight spam by forcing the sender to use some resources (instead of sats).\nMaybe this idea has already been proposed and broken, if that's the case\nI'd love to see the\ndiscussion if someone can surface it.\n\nCheers,\nBastien\n\nLe lun. 11 nov. 2019 à 00:32, Rusty Russell \u003crusty at rustcorp.com.au\u003e a\nécrit :\n\n\u003e Anthony Towns \u003caj at erisian.com.au\u003e writes:\n\u003e \u003e On Fri, Nov 08, 2019 at 01:08:04PM +1030, Rusty Russell wrote:\n\u003e \u003e\u003e Anthony Towns \u003caj at erisian.com.au\u003e writes:\n\u003e \u003e\u003e [ Snip summary, which is correct ]\n\u003e \u003e\n\u003e \u003e Huzzah!\n\u003e \u003e\n\u003e \u003e This correlates all the hops in a payment when the route reaches its end\n\u003e \u003e (due to the final preimage getting propogated back for everyone to\n\u003e justify\n\u003e \u003e the funds they claim). Maybe solvable by converting from hashes to ECC\n\u003e \u003e as the trapdoor function?\n\u003e\n\u003e I hadn't thought of this, but yes, once we've eliminated the trivial\n\u003e preimage correlation w/scriptless scripts it'd be a shame to reintroduce\n\u003e it here.\n\u003e\n\u003e We need an accumulator with some strange properties though:\n\u003e\n\u003e 1. Alice provides tokens and a base accumulator.\n\u003e 2. Bob et. al can add these tokens to the accumulator.\n\u003e 3. They can tell if invalid tokens have been added to the accumulator.\n\u003e 4. They can tell how many tokens (alt: each token has a value and they\n\u003e    can tell the value sum) have been added.\n\u003e 5. They can't tell what tokens have been added (unless they know all\n\u003e    the tokens, which is trivial).\n\u003e\n\u003e Any ideas?\n\u003e\n\u003e \u003e The refund amount propogating back also reveals the path, probably.\n\u003e \u003e Could that be obfusticated by somehow paying each intermediate node\n\u003e \u003e both as the funds go out and come back, so the refund decreases on the\n\u003e \u003e way back?\n\u003e \u003e\n\u003e \u003e Oh, can we make the amounts work like the onion, where it stays constant?\n\u003e \u003e So:\n\u003e \u003e\n\u003e \u003e   Alice wants to pay Dave via Bob, Carol. Bob gets 700 msat, Carol gets\n\u003e \u003e   400 msat, Dave gets 300 msat, and Alice gets 100 msat refunded.\n\u003e \u003e\n\u003e \u003e   Success:\n\u003e \u003e     Alice forwards 1500 msat to Bob   (-1500, +1500, 0, 0)\n\u003e \u003e     Bob forwards 1500 msat to Carol   (-1500, 0, +1500, 0)\n\u003e \u003e     Carol forwards 1500 msat to Dave  (-1500, 0, 0, +1500)\n\u003e \u003e     Dave refunds 1200 msat to Carol   (-1500, 0, +1200, +300)\n\u003e \u003e     Carol refunds 800 msat to Bob     (-1500, +800, +400, +300)\n\u003e \u003e     Bob refunds 100 msat to Alice     (-1400, +700, +400, +300)\n\u003e\n\u003e Or, on success, upfront payment is fully refunded or not refunded at all\n\u003e (since they get paid by normal fees)?  Either way, no data leak for that\n\u003e case.\n\u003e\n\u003e \u003e   Clean routing failure at Carol/Dave:\n\u003e \u003e     Alice forwards 1500 msat to Bob   (-1500, +1500, 0, 0)\n\u003e \u003e     Bob forwards 1500 msat to Carol   (-1500, 0, +1500, 0)\n\u003e \u003e     Carol says Dave's not talking\n\u003e \u003e     Carol refunds 1100 msat to Bob    (-1500, +1100, +400, 0)\n\u003e \u003e     Bob refunds 400 msat to Alice     (-1100, +700, +400, 0)\n\u003e \u003e\n\u003e \u003e I think that breaks the correlation pretty well, so you just need a\n\u003e \u003e decent way of obscuring path length?\n\u003e\n\u003e I don't see how this breaks correlation?\n\u003e\n\u003e \u003e In the uncooperative routing failure case, I wonder if using an ECC\n\u003e \u003e trapdoor and perhaps scriptless scripts, you could make it so Carol\n\u003e \u003e doesn't even get an updated state without revealing the preimage...\n\u003e\n\u003e I'm not sure.  We can make it so Carol has Bob's preimage(s), etc, so\n\u003e that the node which fails doesn't get paid.  I initially thought this\n\u003e would just make people pair up (fake) nodes, but it's probably not worth\n\u003e it since their path would be less-selected in that case.\n\u003e\n\u003e Cheers,\n\u003e Rusty.\n\u003e _______________________________________________\n\u003e Lightning-dev mailing list\n\u003e Lightning-dev at lists.linuxfoundation.org\n\u003e https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev\n\u003e\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20191122/c0045b8d/attachment.html\u003e"}
