Rusty Russell [ARCHIVE] on Nostr: 📅 Original date posted:2019-11-10 📝 Original message: Anthony Towns <aj at ...
📅 Original date posted:2019-11-10
📝 Original message:
Anthony Towns <aj at erisian.com.au> writes:
> On Fri, Nov 08, 2019 at 01:08:04PM +1030, Rusty Russell wrote:
>> Anthony Towns <aj at erisian.com.au> writes:
>> [ Snip summary, which is correct ]
>
> Huzzah!
>
> This correlates all the hops in a payment when the route reaches its end
> (due to the final preimage getting propogated back for everyone to justify
> the funds they claim). Maybe solvable by converting from hashes to ECC
> as the trapdoor function?
I hadn't thought of this, but yes, once we've eliminated the trivial
preimage correlation w/scriptless scripts it'd be a shame to reintroduce
it here.
We need an accumulator with some strange properties though:
1. Alice provides tokens and a base accumulator.
2. Bob et. al can add these tokens to the accumulator.
3. They can tell if invalid tokens have been added to the accumulator.
4. They can tell how many tokens (alt: each token has a value and they
can tell the value sum) have been added.
5. They can't tell what tokens have been added (unless they know all
the tokens, which is trivial).
Any ideas?
> The refund amount propogating back also reveals the path, probably.
> Could that be obfusticated by somehow paying each intermediate node
> both as the funds go out and come back, so the refund decreases on the
> way back?
>
> Oh, can we make the amounts work like the onion, where it stays constant?
> So:
>
> Alice wants to pay Dave via Bob, Carol. Bob gets 700 msat, Carol gets
> 400 msat, Dave gets 300 msat, and Alice gets 100 msat refunded.
>
> Success:
> Alice forwards 1500 msat to Bob (-1500, +1500, 0, 0)
> Bob forwards 1500 msat to Carol (-1500, 0, +1500, 0)
> Carol forwards 1500 msat to Dave (-1500, 0, 0, +1500)
> Dave refunds 1200 msat to Carol (-1500, 0, +1200, +300)
> Carol refunds 800 msat to Bob (-1500, +800, +400, +300)
> Bob refunds 100 msat to Alice (-1400, +700, +400, +300)
Or, on success, upfront payment is fully refunded or not refunded at all
(since they get paid by normal fees)? Either way, no data leak for that
case.
> Clean routing failure at Carol/Dave:
> Alice forwards 1500 msat to Bob (-1500, +1500, 0, 0)
> Bob forwards 1500 msat to Carol (-1500, 0, +1500, 0)
> Carol says Dave's not talking
> Carol refunds 1100 msat to Bob (-1500, +1100, +400, 0)
> Bob refunds 400 msat to Alice (-1100, +700, +400, 0)
>
> I think that breaks the correlation pretty well, so you just need a
> decent way of obscuring path length?
I don't see how this breaks correlation?
> In the uncooperative routing failure case, I wonder if using an ECC
> trapdoor and perhaps scriptless scripts, you could make it so Carol
> doesn't even get an updated state without revealing the preimage...
I'm not sure. We can make it so Carol has Bob's preimage(s), etc, so
that the node which fails doesn't get paid. I initially thought this
would just make people pair up (fake) nodes, but it's probably not worth
it since their path would be less-selected in that case.
Cheers,
Rusty.
Published at
2023-06-09 12:57:07Event JSON
{
"id": "b898e1dcab3ebe22d95d56165b43bc017ce6a765922ed9995928f6e710614105",
"pubkey": "13bd8c1c5e3b3508a07c92598647160b11ab0deef4c452098e223e443c1ca425",
"created_at": 1686315427,
"kind": 1,
"tags": [
[
"e",
"0c91e21e034533f122e94b0fd3031654ae905512e27a1262e64ae8c7923a76b8",
"",
"root"
],
[
"e",
"e0031045315185f662a8a14836cf7b8fa12f62d1537ce446886c5c907e56e435",
"",
"reply"
],
[
"p",
"f0feda6ad58ea9f486e469f87b3b9996494363a26982b864667c5d8acb0542ab"
]
],
"content": "📅 Original date posted:2019-11-10\n📝 Original message:\nAnthony Towns \u003caj at erisian.com.au\u003e writes:\n\u003e On Fri, Nov 08, 2019 at 01:08:04PM +1030, Rusty Russell wrote:\n\u003e\u003e Anthony Towns \u003caj at erisian.com.au\u003e writes:\n\u003e\u003e [ Snip summary, which is correct ]\n\u003e\n\u003e Huzzah!\n\u003e\n\u003e This correlates all the hops in a payment when the route reaches its end\n\u003e (due to the final preimage getting propogated back for everyone to justify\n\u003e the funds they claim). Maybe solvable by converting from hashes to ECC\n\u003e as the trapdoor function?\n\nI hadn't thought of this, but yes, once we've eliminated the trivial\npreimage correlation w/scriptless scripts it'd be a shame to reintroduce\nit here.\n\nWe need an accumulator with some strange properties though:\n\n1. Alice provides tokens and a base accumulator.\n2. Bob et. al can add these tokens to the accumulator.\n3. They can tell if invalid tokens have been added to the accumulator.\n4. They can tell how many tokens (alt: each token has a value and they\n can tell the value sum) have been added.\n5. They can't tell what tokens have been added (unless they know all\n the tokens, which is trivial).\n\nAny ideas?\n\n\u003e The refund amount propogating back also reveals the path, probably.\n\u003e Could that be obfusticated by somehow paying each intermediate node\n\u003e both as the funds go out and come back, so the refund decreases on the\n\u003e way back?\n\u003e\n\u003e Oh, can we make the amounts work like the onion, where it stays constant?\n\u003e So:\n\u003e\n\u003e Alice wants to pay Dave via Bob, Carol. Bob gets 700 msat, Carol gets\n\u003e 400 msat, Dave gets 300 msat, and Alice gets 100 msat refunded.\n\u003e\n\u003e Success:\n\u003e Alice forwards 1500 msat to Bob (-1500, +1500, 0, 0)\n\u003e Bob forwards 1500 msat to Carol (-1500, 0, +1500, 0)\n\u003e Carol forwards 1500 msat to Dave (-1500, 0, 0, +1500)\n\u003e Dave refunds 1200 msat to Carol (-1500, 0, +1200, +300)\n\u003e Carol refunds 800 msat to Bob (-1500, +800, +400, +300)\n\u003e Bob refunds 100 msat to Alice (-1400, +700, +400, +300)\n\nOr, on success, upfront payment is fully refunded or not refunded at all\n(since they get paid by normal fees)? Either way, no data leak for that\ncase.\n\n\u003e Clean routing failure at Carol/Dave:\n\u003e Alice forwards 1500 msat to Bob (-1500, +1500, 0, 0)\n\u003e Bob forwards 1500 msat to Carol (-1500, 0, +1500, 0)\n\u003e Carol says Dave's not talking\n\u003e Carol refunds 1100 msat to Bob (-1500, +1100, +400, 0)\n\u003e Bob refunds 400 msat to Alice (-1100, +700, +400, 0)\n\u003e\n\u003e I think that breaks the correlation pretty well, so you just need a\n\u003e decent way of obscuring path length?\n\nI don't see how this breaks correlation?\n\n\u003e In the uncooperative routing failure case, I wonder if using an ECC\n\u003e trapdoor and perhaps scriptless scripts, you could make it so Carol\n\u003e doesn't even get an updated state without revealing the preimage...\n\nI'm not sure. We can make it so Carol has Bob's preimage(s), etc, so\nthat the node which fails doesn't get paid. I initially thought this\nwould just make people pair up (fake) nodes, but it's probably not worth\nit since their path would be less-selected in that case.\n\nCheers,\nRusty.",
"sig": "2fc0912d8804f73ca5873b67486c755dc8c5a69a38362a0a10f0e09148089d210713641bb748069ce001e20e5c253214677c288495274596ddabcdf3836a9118"
}