Research/Bitcoin Dev Archive / lightning-dev list
Proposal for rendez-vous routing
7 messages, Nov 4 to 5, 2018. Started by CJP.
CJP (3), ZmnSCPxj (3), Rusty Russell
Imagine a future where some powerful participant in the Lightning network starts enforcing KyC requirements on Lightning nodes. It requires its direct neighbors to reveal their identity or else closes channels to them. Next, it asks its direct neighbors to reveal the identity of their direct neighbors (or close their channels), with the threat of either channel closure, or (using the now-known identity) more extreme penalties.
I guess this would lead to a split of the Lightning network into a compliant and a non-compliant part, with no ability to perform payments between the two. If we want to keep the Lightning network inclusive, anonymous and free of central authorities who can impose arbitrary rules, this is an undesirable scenario.
The enabler of this scenario is the fact that, to allow source routing, we need a public channel map of the network.
We have a sort-of-a counter measure called "private channels", which are channels that exist, but whose existence is not published. A private channel might bridge the gap between a compliant and a non- compliant part of the network, but it has a problem: in order to allow payments from one side to the other, the payer has to know about the private channel. If there are lots of payers who have to cross the gap and use the private channel, the existence of the private channel will leak out sooner or later. The node owner on the compliant side of the private channel, presumably having violated the rules by operating a private channel, risks penalties. Therefore, I think private channels are not a very suitable way to keep the network undivided and inclusive and to bridge the gap between different regulatory/non-regulatory domains.
I propose another solution: rendez-vous routing. The idea is that the payee chooses one or more routes from certain third-party nodes in the network to himself and passes sphinx-encrypted blobs for those routes to the payer (for instance, as part of a payment request). The payer completes the route by finding routes from himself to those third-party nodes, and tries to perform the payment over these routes. Of course, payee has to tell payer how many hops payer may add to a route, somewhat revealing how much privacy payee wants for himself.
I believe this approach has the following properties: * It is a superset of the regular approach to routing: the old approach is simply the special case where payee defines 0 of the 20 hops. * Payee may lead the route over private channels without revealing the existence of those private channels to payers. Of course the private channel still needs to be known to payee; it is probably most realistic that such private channels are operated by payee himself. * The payee node may still be a node inside the "compliant" section of the network; it's just that nobody (not even payer) can see which node it is. So, even when your node is linked to your identity, your activities (even as payee) are not linked to your identity.
I guess we already discussed this before, but I just wanted to have a clear place to discuss this idea, and I couldn't find any clear past discussion about this in the mailing list.
There might be alternative approaches, such as not routing between incompatible regulatory domains, but simply having nodes on each network if you need to, and simply move funds on-chain between your nodes whenever needed. That will require on-chain mixing though.
CJP
Good morning CJP,
I believe this is a desirable feature, although...
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Sunday, November 4, 2018 2:26 PM, CJP <cjp at ultimatestunts.nl> wrote:
Quoted text (8 lines)
> Imagine a future where some powerful participant in the Lightning > network starts enforcing KyC requirements on Lightning nodes. It > requires its direct neighbors to reveal their identity or else closes > channels to them. Next, it asks its direct neighbors to reveal the > identity of their direct neighbors (or close their channels), with the > threat of either channel closure, or (using the now-known identity) > more extreme penalties. >
For this particular scenario, it seems to me that it would be better for the rest of the network to punish this participant by closing any channel to this KYC-requiring participant, and also to do retaliatory preemptive closing of any channel to any participant publicly connecting, directly or indirectly, to that participant. Or in short, to let that participant enforce whatever it wants to close. This will greatly lower its fee earnings as well as its ability to monitor or control the network. If every Lightning node refuses to reveal their identity (etc.) to this participant, then the participant will close all its channels and it will no longer be a powerful **participant** of Lightning, thus removing itself and its influence from Lightning in the most satisfying way possible, i.e. through shooting itself in the foot.
Nonetheless, I believe this feature is desirable, not for the above scenario, but simply so that a payee is not required to maintain even a pseudonym on the Lightning Network (the payee will still have to be somehow contactable so it can generate an invoice somehow, but at least it will not even have an identifiable pseudonym on-Lightning; perhaps it may have a pseudonym on some other network with better privacy). If all its generated invoices use rendezvous routing, then while it, obviously, must have a Lightning node somewhere, that node is not easily identifiable among all Lightning nodes.
Looking through BOLT 4, the text assumes inherently that source routing is done, and even has a shared secret between hop and source. However, it may be possible in rendezvous routing to simply provide the blinding key (while hiding everything beyond the first hop on the destination half of the route).
I also think that, as the destination is choosing the nodes on its half of the route, that it should pay for fees, and thus the source is only required to deliver the specified amount to the first hop node of the destination half of the rendezvous route.
Regards, ZmnSCPxj
ZmnSCPxj schreef op zo 04-11-2018 om 14:34 [+0000]:
Quoted text (35 lines)
> Good morning CJP, > > I believe this is a desirable feature, although... > > > Sent with ProtonMail Secure Email. > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > On Sunday, November 4, 2018 2:26 PM, CJP <cjp at ultimatestunts.nl> > wrote: > > > Imagine a future where some powerful participant in the Lightning > > network starts enforcing KyC requirements on Lightning nodes. It > > requires its direct neighbors to reveal their identity or else > > closes > > channels to them. Next, it asks its direct neighbors to reveal the > > identity of their direct neighbors (or close their channels), with > > the > > threat of either channel closure, or (using the now-known identity) > > more extreme penalties. > > > > For this particular scenario, it seems to me that it would be better > for the rest of the network to punish this participant by closing any > channel to this KYC-requiring participant, and also to do retaliatory > preemptive closing of any channel to any participant publicly > connecting, directly or indirectly, to that participant. Or in > short, to let that participant enforce whatever it wants to > close. This will greatly lower its fee earnings as well as its > ability to monitor or control the network. If every Lightning node > refuses to reveal their identity (etc.) to this participant, then the > participant will close all its channels and it will no longer be a > powerful **participant** of Lightning, thus removing itself and its > influence from Lightning in the most satisfying way possible, i.e. > through shooting itself in the foot.
I disagree: you may not be in a position to freely close such channels and remove your ability to transact with this party, similar to how you may not be in a position to refuse to pay taxes. Also, since it is hard to avoid (in the current situation) that some Lightning nodes have a known link to legal entities like companies or persons, there are ways outside the Lightning network to put pressure on node owners, especially non-pseudonymous high-profile ones. This is, however, a non- technical discussion; since we already agree on the desirability of the feature, I suggest to keep it at this and focus on the technical details.
Quoted text (9 lines)
> Nonetheless, I believe this feature is desirable, not for the above > scenario, but simply so that a payee is not required to maintain even > a pseudonym on the Lightning Network (the payee will still have to be > somehow contactable so it can generate an invoice somehow, but at > least it will not even have an identifiable pseudonym on-Lightning; > perhaps it may have a pseudonym on some other network with better > privacy). If all its generated invoices use rendezvous routing, then > while it, obviously, must have a Lightning node somewhere, that node > is not easily identifiable among all Lightning nodes.
I guess that for most use cases a payee pseudonym is needed, unless your use case is donating to random strangers. I only found one exception: where the thing you pay for is cryptographically linked to the Lightning payment (effectively, an atomic swap, like in a Lightning-based decentralized exchange). In that case, a truly anonymous (as opposed to pseudonymous) payee makes sense.
However, for use cases where the payee needs a pseudonym, it might still be desirable to decouple that pseudonym from a location in the Lightning network. Rendezvous routing can do that.
Quoted text (5 lines)
> Looking through BOLT 4, the text assumes inherently that source > routing is done, and even has a shared secret between hop and > source. However, it may be possible in rendezvous routing to simply > provide the blinding key (while hiding everything beyond the first > hop on the destination half of the route).
Sounds like it makes sense; I need to look into it.
Quoted text (4 lines)
> I also think that, as the destination is choosing the nodes on its > half of the route, that it should pay for fees, and thus the source > is only required to deliver the specified amount to the first hop > node of the destination half of the rendezvous route.
Agreed. The price agreed between payer and payee is the incoming amount at the rendezvous point. In the "original" case that the payee-side route is 0 hops long, the payee is the rendezvous point, and we're equal to the original concept where the agreed-on price is the incoming amount at the payee.
CJP
CJP <cjp at ultimatestunts.nl> writes:
Quoted text (7 lines)
>> Looking through BOLT 4, the text assumes inherently that source >> routing is done, and even has a shared secret between hop and >> source. However, it may be possible in rendezvous routing to simply >> provide the blinding key (while hiding everything beyond the first >> hop on the destination half of the route). > > Sounds like it makes sense; I need to look into it.
Here's my attempt to design a "merchant forward" service using stuff we have today.
Alice wants to remain anonymous, even from the lightning network. Bob's node offers a forwarding service. Alice pays Bob (base + percentage?), gives a path Bob->Alice, and Bob gives Alice a short-channel-id (BobAliceSCID) and privkey to use (BobAliceSecretKey). Anything sent from Bob to this short channel id and pubkey is in fact forwarded via a new HTLC to Alice.
Alice identity BobAliceKey to create an invoice, with a route-hint to say pubkey=Bob, short_channel_id=BobAliceSCID. Alice can sign that invoice, and Bob can decode the incoming payment, from which it creates a new HTLC to pay Alice. The payer doesn't even know this arrangement exists: it looks exactly like Alice has a private channel with Bob.
The minor downside: because we conflate invoice keys (Alice needs) and onion keys (Bob needs), Bob can now issue invoices as Alice. It's not very useful, since Alice won't honor them, but it is an argument for a separate invoice key in future.
Cheers, Rusty.
Good morning Rusty,
On Monday, November 5, 2018 8:26 AM, Rusty Russell <rusty at rustcorp.com.au> wrote:
Quoted text (32 lines)
> CJP cjp at ultimatestunts.nl writes: > > > > Looking through BOLT 4, the text assumes inherently that source > > > routing is done, and even has a shared secret between hop and > > > source. However, it may be possible in rendezvous routing to simply > > > provide the blinding key (while hiding everything beyond the first > > > hop on the destination half of the route). > > > > Sounds like it makes sense; I need to look into it. > > Here's my attempt to design a "merchant forward" service using stuff we > have today. > > Alice wants to remain anonymous, even from the lightning network. Bob's > node offers a forwarding service. Alice pays Bob (base + percentage?), > gives a path Bob->Alice, and Bob gives Alice a short-channel-id > (BobAliceSCID) and privkey to use (BobAliceSecretKey). Anything sent > from Bob to this short channel id and pubkey is in fact forwarded via a > new HTLC to Alice. > > Alice identity BobAliceKey to create an invoice, with a route-hint to > say pubkey=Bob, short_channel_id=BobAliceSCID. Alice can sign > that invoice, and Bob can decode the incoming payment, from which it > creates a new HTLC to pay Alice. The payer doesn't even know this > arrangement exists: it looks exactly like Alice has a private channel > with Bob. > > The minor downside: because we conflate invoice keys (Alice needs) and > onion keys (Bob needs), Bob can now issue invoices as Alice. It's not > very useful, since Alice won't honor them, but it is an argument for > a separate invoice key in future. >
I believe it is not the intent of rendezvous routing; for the goal "the payee can remain anonymous without being linked to a particular pseudonymous LN node," it occurs to me that Bob knows about Alice and in particular knows that any route going through BobAliceSCID will always go to Alice, which to me defeats the point.
My understanding is simply that Alice will provide a route from some other node, say, Randy the random node, to Alice, as an encrypted onion. Then the payer can simply concatenate the destination onion with the source route to Randy. Alice would use the same public map generated from node gossip to generate the destination-half of the onion from Randy to Alice.
Regards, ZmnSCPxj
Rusty,
In your proposal, I guess it is more or less widely known that Bob is providing this forwarding service. Wouldn't Bob risk being excluded from the side of the network with the more harsh regulatory conditions, based on this knowledge? Bob might actually face even worse penalties for providing such a service.
The nice thing about rendez-vous routing is that *any* forwarding node can be a rendez-vous point, and even the node itself wouldn't know about it. The case where a payment is routed from and to the same channel could be a hint though: normally that makes no sense, but if payer and payee make their part of the route independently, the combined route can often end up like that. TODO: check if forwarding nodes are currently cool with such weird forwarding requests.
CJP
Rusty Russell schreef op ma 05-11-2018 om 10:56 [+1030]:
Quoted text (41 lines)
> CJP <cjp at ultimatestunts.nl> writes: > > > Looking through BOLT 4, the text assumes inherently that source > > > routing is done, and even has a shared secret between hop and > > > source. However, it may be possible in rendezvous routing to > > > simply > > > provide the blinding key (while hiding everything beyond the > > > first > > > hop on the destination half of the route). > > > > Sounds like it makes sense; I need to look into it. > > Here's my attempt to design a "merchant forward" service using stuff > we > have today. > > Alice wants to remain anonymous, even from the lightning > network. Bob's > node offers a forwarding service. Alice pays Bob (base + > percentage?), > gives a path Bob->Alice, and Bob gives Alice a short-channel-id > (BobAliceSCID) and privkey to use (BobAliceSecretKey). Anything sent > from Bob to this short channel id and pubkey is in fact forwarded via > a > new HTLC to Alice. > > Alice identity BobAliceKey to create an invoice, with a route-hint to > say pubkey=Bob, short_channel_id=BobAliceSCID. Alice can sign > that invoice, and Bob can decode the incoming payment, from which it > creates a new HTLC to pay Alice. The payer doesn't even know this > arrangement exists: it looks exactly like Alice has a private channel > with Bob. > > The minor downside: because we conflate invoice keys (Alice needs) > and > onion keys (Bob needs), Bob can now issue invoices as Alice. It's > not > very useful, since Alice won't honor them, but it is an argument for > a separate invoice key in future. > > Cheers, > Rusty.
Good morning CJP,
On Monday, November 5, 2018 4:04 PM, CJP <cjp at ultimatestunts.nl> wrote:
Quoted text (15 lines)
> Rusty, > > In your proposal, I guess it is more or less widely known that Bob is > providing this forwarding service. Wouldn't Bob risk being excluded > from the side of the network with the more harsh regulatory conditions, > based on this knowledge? Bob might actually face even worse penalties > for providing such a service. > > The nice thing about rendez-vous routing is that any forwarding node > can be a rendez-vous point, and even the node itself wouldn't know > about it. The case where a payment is routed from and to the same > channel could be a hint though: normally that makes no sense, but if > payer and payee make their part of the route independently, the > combined route can often end up like that. TODO: check if forwarding > nodes are currently cool with such weird forwarding requests.
This is allowed within the protocol and to my knowledge existing node software do not particularly care. However, it is indeed a concern as it allows somebody to notice such use of rendezvous routing.
A use of this (forwarding to the same channel as receiving) is to give donations to a node without actually requiring an invoice to that node. You simply route a circle to yourself to an invoice you generated yourself, and hide the donation to some node as fees paid for forwarding through that node. Nodes will accept as fee any amount higher than the feerate they indicate in gossip.
Regards, ZmnSCPxj
Quoted text (43 lines)
> > CJP > > Rusty Russell schreef op ma 05-11-2018 om 10:56 [+1030]: > > > CJP cjp at ultimatestunts.nl writes: > > > > > > Looking through BOLT 4, the text assumes inherently that source > > > > routing is done, and even has a shared secret between hop and > > > > source. However, it may be possible in rendezvous routing to > > > > simply > > > > provide the blinding key (while hiding everything beyond the > > > > first > > > > hop on the destination half of the route). > > > > > > Sounds like it makes sense; I need to look into it. > > > > Here's my attempt to design a "merchant forward" service using stuff > > we > > have today. > > Alice wants to remain anonymous, even from the lightning > > network. Bob's > > node offers a forwarding service. Alice pays Bob (base + > > percentage?), > > gives a path Bob->Alice, and Bob gives Alice a short-channel-id > > (BobAliceSCID) and privkey to use (BobAliceSecretKey). Anything sent > > from Bob to this short channel id and pubkey is in fact forwarded via > > a > > new HTLC to Alice. > > Alice identity BobAliceKey to create an invoice, with a route-hint to > > say pubkey=Bob, short_channel_id=BobAliceSCID. Alice can sign > > that invoice, and Bob can decode the incoming payment, from which it > > creates a new HTLC to pay Alice. The payer doesn't even know this > > arrangement exists: it looks exactly like Alice has a private channel > > with Bob. > > The minor downside: because we conflate invoice keys (Alice needs) > > and > > onion keys (Bob needs), Bob can now issue invoices as Alice. It's > > not > > very useful, since Alice won't honor them, but it is an argument for > > a separate invoice key in future. > > Cheers, > > Rusty.