Research/Bitcoin Dev Archive / lightning-dev list
Blind paths revisited
14 messages, Mar 10 to Apr 2, 2020. Started by Rusty Russell.
ZmnSCPxj (6), Subhra Mazumdar (4), Rusty Russell (2), Bastien TEINTURIER (2)
I recently hit a dead-end on rendezvous routing; the single-use requirement is a showstopper for offers (which are supposed to be static and reusable).
Fortunately, t-bast has a scheme for blinded paths (see https://gist.github.com/t-bast/9972bfe9523bb18395bdedb8dc691faf ) so I've been examining that more closely. I think it can be simplified to use more standard primitives.
The problem: Alice wants to present Mallory with a path (Carol, Bob, Alice) for which he can create an onion, which is obscured in some way, but can be unobscured by the various nodes. Mallory should be forced to use the entire path.
Alice can give Mallory two ECDH blobs to place inside the per-hop payload to establish shared secrets with Bob and Carol. But crucially, Bob needs the secret *before* he can unwrap the onion, so the ECDH blob for the next peer needs to be sent alongside the onion itself.
t-bast proposed using the secret to XOR the scid, but Christian suggested it's more powerful to encrypt a general payload.
What does this leave us with?
1. A new invoice letter `b`. Encodes 1 or more pubkey/feebase/feeprop/cltvdelta/features/encblob.
2. An additional (tlv of course) field to update_add_htlc, `blinding`.
3. New `tlv_payload` field `encblob` (varlen).
4. ECDH on incoming `blinding` to get a shared secret which tells this node how to tweak its nodeid to decrypt onion, and also how to decrypt `encblob`. This gives a tlv, which presumably contains `short_channel_id` as well as `blinding`.
5. Use `blinding` for the next update_add_htlc.
6. If you get an error from downstream and you sent `blinding`, turn it into your own error for maximum obfuscation. Perhaps a new "blinded_path_error"? Obviously does not include a channel_update :)
So, if you get an invoice `b`, with path starting at (known) Carol:
Carol/1/1/9/""/enc1
Bob'/1/1/9/""/enc2
[Optional: decoy hops...]
Payer constructs the onion to get to Carol as normal, then:
Carol: No `blinding` in incoming HTLC, but once it decrypts the
onion, she sees `encblob` (value enc1). Uses first 32
bytes of `enc1` as `blinding`: do ECDH to get SS1, uses
SS1 to decrypt rest to get next scid and `blinding`, send
`blinding` with update_add_htlc to Bob.
Bob: Gets `blinding` from update_add_htlc. ECDH -> SS2. Tweak
own key with SS2 to decode onion. Use SS2 to decrypt
`enc2` to get next scid and blinding. Send `blinding`
with update_add_htlc to Alice.
Alice: Gets `blinding` from update_add_htlc. ECDH -> SS3. Tweak
own key with SS3 to decode onion. If it put in decoy
hops, this onion won't be terminal, but otherwise it can
be treated as terminal iff `blinding` is the expected value
for this invoice.
Note that this means no payment secret is necessary, since the incoming `blinding` serves the same purpose. If we wanted to, we could (ab)use payment_secret as the first 32-bytes to put in Carol's enc1 (i.e. it's the ECDH for Carol to decrypt enc1).
Thoughts? Rusty.
Good morning Rusty, et al.,
Quoted text (4 lines)
> Note that this means no payment secret is necessary, since the incoming > `blinding` serves the same purpose. If we wanted to, we could (ab)use > payment_secret as the first 32-bytes to put in Carol's enc1 (i.e. it's > the ECDH for Carol to decrypt enc1).
I confess to not reading everything in detail, but it seems to me that, with payment point + scalar and path decorrelation, we need to establish a secret with each hop anyway (the blinding scalar for path decorrelation), so if you need a secret per hop, possibly this could be reused as well?
Regards, ZmnSCPxj
ZmnSCPxj <ZmnSCPxj at protonmail.com> writes:
Quoted text (9 lines)
> Good morning Rusty, et al., > > >> Note that this means no payment secret is necessary, since the incoming >> `blinding` serves the same purpose. If we wanted to, we could (ab)use >> payment_secret as the first 32-bytes to put in Carol's enc1 (i.e. it's >> the ECDH for Carol to decrypt enc1). > > I confess to not reading everything in detail, but it seems to me that, with payment point + scalar and path decorrelation, we need to establish a secret with each hop anyway (the blinding scalar for path decorrelation), so if you need a secret per hop, possibly this could be reused as well?
Indeed, this could be used the same way, though for that secret it can simply be placed inside the onion rather than passed alongside.
Cheers, Rusty.
Good morning list,
Thanks Rusty for following up on this, I'm glad it may be useful for offers! I certainly want this as well for wallet users' privacy.
I have gathered my proposal in a better format than my previous gist here: https://github.com/lightningnetwork/lightning-rfc/blob/route-blinding/proposals/route-blinding.md
You will note that I've been able to simplify the scheme a bit compared to my gist. It's now very clear that this is exactly the same kind of secrets derivation than what Sphinx does. I still have things I want to add to the proposal, but at least the crypto part should be ready to review (and I think it does need more eyes on it).
Feel free to add comments directly on the branch commits, it may be easier to review that way. Let me know if you think I should turn it into a draft PR to facilitate discussions. It kept it vague on some specific parts on purpose (such as invoice fields, encrypted blob format); we will learn from early prototype implementations and enrich the proposal as we go.
A few comments on your previous mails. I have removed the (ab)use of `payment_secret`, but I think your comment on using the `blinding` to replace it would not work because that blinding is known by the next-to-last node (which computes it and forwards it to the final node). The goal of `payment_secret` is explicitly to avoid having the next-to-last node discover it to prevent him from probing. But I think that you didn't plan on doing the blinding the same way I'm doing it, which may explain the difference.
As for ZmnSCPxj's suggestion, I think there is the same kind of issue. The secrets we establish with anonymous multi-hops locks are between the *sender* and each of the hops. In the route blinding case, what we're adding are secrets between the *recipient* and the hops, and we don't want the sender to be able to influence those. It's a kind of reverse Sphinx. So I'm not sure yet the recipient could safely contribute to those secrets, but maybe we'll find a nice trick in the future!
Cheers, Bastien
Le mer. 11 mars 2020 à 00:22, Rusty Russell <rusty at rustcorp.com.au> a écrit :
Quoted text (24 lines)
> ZmnSCPxj <ZmnSCPxj at protonmail.com> writes: > > Good morning Rusty, et al., > > > > > >> Note that this means no payment secret is necessary, since the incoming > >> `blinding` serves the same purpose. If we wanted to, we could (ab)use > >> payment_secret as the first 32-bytes to put in Carol's enc1 (i.e. it's > >> the ECDH for Carol to decrypt enc1). > > > > I confess to not reading everything in detail, but it seems to me that, > with payment point + scalar and path decorrelation, we need to establish a > secret with each hop anyway (the blinding scalar for path decorrelation), > so if you need a secret per hop, possibly this could be reused as well? > > Indeed, this could be used the same way, though for that secret it can > simply be placed inside the onion rather than passed alongside. > > Cheers, > Rusty. > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://www.learnbitcoin.com/archive/lists/lightning-dev >
Good morning tbast, rusty, and list,
Quoted text (7 lines)
> As for ZmnSCPxj's suggestion, I think there is the same kind of issue. > The secrets we establish with anonymous multi-hops locks are between the *sender* > and each of the hops. In the route blinding case, what we're adding are secrets > between the *recipient* and the hops, and we don't want the sender to be able to > influence those. It's a kind of reverse Sphinx. So I'm not sure yet the recipient > could safely contribute to those secrets, but maybe we'll find a nice trick in > the future!
Not quite?
The recipient knows the secrets from the first recipient-selected-hop to itself, and, if it knows the payment scalar, can subtract those secrets from the receiver scalar. Thus the sender only has to arrange to deliver the payment point to the first recipient-selected-hop, the rest of the recipient-selected-hops will add their blinding scalars (which come from the recipient), and the final recipient can linearly deduct those.
Regards, ZmnSCPxj
Good morning ZmnSCPxj,
Ok I see what you mean. In that case it would be slightly different from the current path blinding proposal. The recipient would need to give the sender all the blinding points for each hop in the blinded path. Currently the recipient only gives one blinding point and then each node in the blinded path is able to compute the next blinding point and send it to the next node.
This may work, but I think it deserves a closer look. The security assumptions in multi-hop locks is that the sender can choose every secret from a random distribution. If instead these secrets are provided by the recipient, this may open up some attack vectors on the sender. Maybe the sender can tweak each recipient secret with a secret of its own, but one would need to write the exact maths down to verify that it works end-to-end.
I'm not saying it's impossible, I'm just saying that it's not trivial at all and the devil is in the details ;)
Cheers, Bastien
Le ven. 13 mars 2020 à 01:42, ZmnSCPxj <ZmnSCPxj at protonmail.com> a écrit :
Quoted text (29 lines)
> Good morning tbast, rusty, and list, > > > > As for ZmnSCPxj's suggestion, I think there is the same kind of issue. > > The secrets we establish with anonymous multi-hops locks are between the > *sender* > > and each of the hops. In the route blinding case, what we're adding are > secrets > > between the *recipient* and the hops, and we don't want the sender to be > able to > > influence those. It's a kind of reverse Sphinx. So I'm not sure yet the > recipient > > could safely contribute to those secrets, but maybe we'll find a nice > trick in > > the future! > > Not quite? > > The recipient knows the secrets from the first recipient-selected-hop to > itself, and, if it knows the payment scalar, can subtract those secrets > from the receiver scalar. > Thus the sender only has to arrange to deliver the payment point to the > first recipient-selected-hop, the rest of the recipient-selected-hops will > add their blinding scalars (which come from the recipient), and the final > recipient can linearly deduct those. > > Regards, > ZmnSCPxj >
Good morning Bastien,
Quoted text (12 lines)
> Good morning ZmnSCPxj, > > Ok I see what you mean. In that case it would be slightly different from the current path blinding proposal. > The recipient would need to give the sender all the blinding points for each hop in the blinded path. > Currently the recipient only gives one blinding point and then each node in the blinded path is able to > compute the next blinding point and send it to the next node. > > This may work, but I think it deserves a closer look. The security assumptions in multi-hop locks is that > the sender can choose every secret from a random distribution. If instead these secrets are provided by > the recipient, this may open up some attack vectors on the sender. Maybe the sender can tweak each > recipient secret with a secret of its own, but one would need to write the exact maths down to verify that > it works end-to-end.
Not every secret is chosen by the sender --- the final target payment scalar comes from the receiver, after all, and if the payee can somehow attack the sender if multiple scalars are given, then the payee can also attack the sender if a single scalar is given, because linearity. Whether the final receiver secret is a single scalar, or multiple scalars summed together, seems to be immaterial.
So for example if the payment point + scalar is (N, n), then as usual the sender creates blinding scalars s0 s1 s2 and creates an initial PTLC that requests for (s0 + s1 + s2) * G + N, each hop the sender select subtracts some s[i], then the rendezvous point receives just N. Then the rendezvous unwraps the receiver-side onion, which reveals a path with blinding scalars r0 r1 r2, each subsequent receiver-selected path subtracts some r[i] until the receiver receives a PTLC asking for the scalar behind N - (r0 + r1 + r2) * G. Since the receiver knows n such that N = n * G, and knows all the r[i], it can claim that PTLC.
Thus the sender can treat the rendezvous point as the "real" receiver, with an abnormally high `final_cltv_expiry`, and of course the receiver is now the one paying for the fees deducted by each hop the receiver chose (i.e. the sender is obligated to deliver the agreed funds only up to the rendezvous node). As far as the sender is concerned, the payment point + scalar is N = n * G, not N - (r0 + r1 + r2) * G = n - r0 - r1 - r2.
Regards, ZmnSCPxj
Commenting on it : "As for ZmnSCPxj's suggestion, I think there is the same kind of issue. The secrets we establish with anonymous multi-hops locks are between the *sender* and each of the hops. In the route blinding case, what we're adding are secrets between the *recipient* and the hops, and we don't want the sender to be able to influence those." Is it a good idea to rely entirely on the sender for sampling the secrets as well as generating the PTLC? As happens in anonymous multi-hops locks, for example. Or as it has been discussed later in the thread, both receiver and sender must be involved in creation of PTLC? What happens if sender/receiver is/(or both are) corrupted? Can it leak secrets to other parties?
On Wed, Mar 11, 2020 at 9:57 PM Bastien TEINTURIER via Lightning-dev < lightning-dev at lists.linuxfoundation.org> wrote:
Quoted text (86 lines)
> Good morning list, > > Thanks Rusty for following up on this, I'm glad it may be useful for > offers! > I certainly want this as well for wallet users' privacy. > > I have gathered my proposal in a better format than my previous gist here: > > https://github.com/lightningnetwork/lightning-rfc/blob/route-blinding/proposals/route-blinding.md > > You will note that I've been able to simplify the scheme a bit compared to > my > gist. It's now very clear that this is exactly the same kind of secrets > derivation than what Sphinx does. I still have things I want to add to the > proposal, but at least the crypto part should be ready to review (and I > think > it does need more eyes on it). > > Feel free to add comments directly on the branch commits, it may be easier > to > review that way. Let me know if you think I should turn it into a draft PR > to > facilitate discussions. It kept it vague on some specific parts on purpose > (such as invoice fields, encrypted blob format); we will learn from early > prototype implementations and enrich the proposal as we go. > > A few comments on your previous mails. I have removed the (ab)use of > `payment_secret`, but I think your comment on using the `blinding` to > replace > it would not work because that blinding is known by the next-to-last node > (which computes it and forwards it to the final node). > The goal of `payment_secret` is explicitly to avoid having the > next-to-last node > discover it to prevent him from probing. But I think that you didn't plan > on > doing the blinding the same way I'm doing it, which may explain the > difference. > > As for ZmnSCPxj's suggestion, I think there is the same kind of issue. > The secrets we establish with anonymous multi-hops locks are between the > *sender* > and each of the hops. In the route blinding case, what we're adding are > secrets > between the *recipient* and the hops, and we don't want the sender to be > able to > influence those. It's a kind of reverse Sphinx. So I'm not sure yet the > recipient > could safely contribute to those secrets, but maybe we'll find a nice > trick in > the future! > > Cheers, > Bastien > > Le mer. 11 mars 2020 à 00:22, Rusty Russell <rusty at rustcorp.com.au> a > écrit : > >> ZmnSCPxj <ZmnSCPxj at protonmail.com> writes: >> > Good morning Rusty, et al., >> > >> > >> >> Note that this means no payment secret is necessary, since the incoming >> >> `blinding` serves the same purpose. If we wanted to, we could (ab)use >> >> payment_secret as the first 32-bytes to put in Carol's enc1 (i.e. it's >> >> the ECDH for Carol to decrypt enc1). >> > >> > I confess to not reading everything in detail, but it seems to me that, >> with payment point + scalar and path decorrelation, we need to establish a >> secret with each hop anyway (the blinding scalar for path decorrelation), >> so if you need a secret per hop, possibly this could be reused as well? >> >> Indeed, this could be used the same way, though for that secret it can >> simply be placed inside the onion rather than passed alongside. >> >> Cheers, >> Rusty. >> _______________________________________________ >> Lightning-dev mailing list >> Lightning-dev at lists.linuxfoundation.org >> https://www.learnbitcoin.com/archive/lists/lightning-dev >> > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://www.learnbitcoin.com/archive/lists/lightning-dev >
Good morning Subhra,
Quoted text (6 lines)
> Commenting on it : "As for ZmnSCPxj's suggestion, I think there is the same kind of issue. > The secrets we establish with anonymous multi-hops locks are between the *sender* > and each of the hops. In the route blinding case, what we're adding are secrets > between the *recipient* and the hops, and we don't want the sender to be able to > influence those." > Is it a good idea to rely entirely on the sender for sampling the secrets as well as generating the PTLC? As happens in anonymous multi-hops locks, for example. Or as it has been discussed later in the thread, both receiver and sender must be involved in creation of PTLC? What happens if sender/receiver is/(or both are) corrupted? Can it leak secrets to other parties?
If both are corrupted, this brings up the question: who are you hiding any information from? The corruptor has already corrupted both: there is no security or privacy possible, the payment is already totally compromised.
The operation of forwarding nodes is simple enough that in general they cannot be attacked: sure, the sender and receiver together knows who they are, but forwarding nodes are the ones who advertise themselves in order to be forwarded through, so they already are known anyway.
When considering privacy, we should always consider that it is the payment as a whole which we want to have privacy: we want that third parties will not be able to nail down which particular sender sent to which particular receiver. Thus if the sender already leaks who it is paying to, that is pretty much the entire loss of privacy.
Now, currently on Lightning, in general the receiver does not know the sender node. (Applications on top of Lightning might have the receiver require the sender to provide private data, such as a drop point to send a physical product to, but *looking only on Lightning* the sender does not send any of its information to the receiver).
However, currently, the exact receiver node has to be known by the sender, in order for the sender to make a route to it. This is a concern since it may be possible for layer-crossing shenanigans to be performed, for example the sender might attempt to eclipse the receiver on the Bitcoin blockchain layer and make it lose funds by not realizing that a PTLC/HTLC has been timed out (because the eclipse attack prevents new blocks from propagating to the receiver, who blithely continues to think that the timeout has not been reached when in fact it has).
The proposal to have a receiver provide a partial, blinded path gives the receiver better privacy protection against the sender: the sender knows it is one of a possible number of nodes within some number of hops from a particular node, but does not know if it is that exact node, one of its neighbors, or one of its neighbor neighbors (etc.) is the actual receiver. This should make it harder for the sender to attack the receiver by attempting to locate its node and eclipse it at the Bitcoin layer, or other blockchain-layer shenanigans.
Now, the argument I make is that while the blinding factors in a decorrelated PTLC-based payment may be generated by the sender in order for the sender to have path privacy, it is safe for the receiver to provide blinding factors to a partial path as well. We should remember that the blinding factors are just scalars added to the final point/scalar at the ultimate recipient, and the final point/scalar pair is completely controlled by the recipient anyway, so it should not be an issue here: the point that the sender will target at the first node in the receiver-provided partial route is no different from the final point that the sender would have targeted if it knew exactly who the receiver is.
Regards, ZmnSCPxj
Hi ZmnSCPxj,
Thanks for the explanation. Pardon my knowledge in this domain but
what I meant is that sender has malicious intent and wants honest parties
to suffer. So by leaking secrets, I meant not revealing its or receiver's
identity to the forwarding nodes, but somehow manipulating subset of the
nodes so that an attack can be launched in the network. For example,
consider path S->A->B->C->D->E->F->R. If we consider the protocol anonymous
multihop lock, S samples secret x_a,x_b,x_c,x_d,x_e,x_f for the nodes
A,B,C,D,E and F respectively. R gets the key k=x_a+x_b+x_c+x_d+x_e+x_f. If
S colludes with B (possibly leak the value x_c,x_d,x_e,x_f to B), lock
funds C,D,E but then not allowing it to relay funds (possibly do a griefing
attack?). What I meant is that if one totally relies on S for the setup
phase, won't it lead to other vulnerabilities? The situation might sound
unrealistic but I still have doubt whether we guarantee fairness if put our
trust entirely on one single entity.
On Wed, Apr 1, 2020 at 10:39 PM ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote:
Quoted text (75 lines)
> Good morning Subhra, > > > Commenting on it : "As for ZmnSCPxj's suggestion, I think there is the > same kind of issue. > > The secrets we establish with anonymous multi-hops locks are between the > *sender* > > and each of the hops. In the route blinding case, what we're adding are > secrets > > between the *recipient* and the hops, and we don't want the sender to be > able to > > influence those." > > Is it a good idea to rely entirely on the sender for sampling the > secrets as well as generating the PTLC? As happens in anonymous multi-hops > locks, for example. Or as it has been discussed later in the thread, both > receiver and sender must be involved in creation of PTLC? What happens if > sender/receiver is/(or both are) corrupted? Can it leak secrets to other > parties? > > If both are corrupted, this brings up the question: who are you hiding any > information from? > The corruptor has already corrupted both: there is no security or privacy > possible, the payment is already totally compromised. > > The operation of forwarding nodes is simple enough that in general they > cannot be attacked: sure, the sender and receiver together knows who they > are, but forwarding nodes are the ones who advertise themselves in order to > be forwarded through, so they already are known anyway. > > When considering privacy, we should always consider that it is the payment > as a whole which we want to have privacy: we want that third parties will > not be able to nail down which particular sender sent to which particular > receiver. > Thus if the sender already leaks who it is paying to, that is pretty much > the entire loss of privacy. > > Now, currently on Lightning, in general the receiver does not know the > sender node. > (Applications on top of Lightning might have the receiver require the > sender to provide private data, such as a drop point to send a physical > product to, but *looking only on Lightning* the sender does not send any of > its information to the receiver). > > However, currently, the exact receiver node has to be known by the sender, > in order for the sender to make a route to it. > This is a concern since it may be possible for layer-crossing shenanigans > to be performed, for example the sender might attempt to eclipse the > receiver on the Bitcoin blockchain layer and make it lose funds by not > realizing that a PTLC/HTLC has been timed out (because the eclipse attack > prevents new blocks from propagating to the receiver, who blithely > continues to think that the timeout has not been reached when in fact it > has). > > The proposal to have a receiver provide a partial, blinded path gives the > receiver better privacy protection against the sender: the sender knows it > is one of a possible number of nodes within some number of hops from a > particular node, but does not know if it is that exact node, one of its > neighbors, or one of its neighbor neighbors (etc.) is the actual receiver. > This should make it harder for the sender to attack the receiver by > attempting to locate its node and eclipse it at the Bitcoin layer, or other > blockchain-layer shenanigans. > > Now, the argument I make is that while the blinding factors in a > decorrelated PTLC-based payment may be generated by the sender in order for > the sender to have path privacy, it is safe for the receiver to provide > blinding factors to a partial path as well. > We should remember that the blinding factors are just scalars added to the > final point/scalar at the ultimate recipient, and the final point/scalar > pair is completely controlled by the recipient anyway, so it should not be > an issue here: the point that the sender will target at the first node in > the receiver-provided partial route is no different from the final point > that the sender would have targeted if it knew exactly who the receiver is. > > Regards, > ZmnSCPxj >
Good morning Subhra,
Quoted text (2 lines)
> Hi ZmnSCPxj, > Thanks for the explanation. Pardon my knowledge in this domain but what I meant is that sender has malicious intent and wants honest parties to suffer. So by leaking secrets, I meant not revealing its or receiver's identity to the forwarding nodes, but somehow manipulating subset of the nodes so that an attack can be launched in the network. For example, consider path S->A->B->C->D->E->F->R. If we consider the protocol anonymous multihop lock, S samples secret x_a,x_b,x_c,x_d,x_e,x_f for the nodes A,B,C,D,E and F respectively. R gets the key k=x_a+x_b+x_c+x_d+x_e+x_f. If S colludes with B (possibly leak the value x_c,x_d,x_e,x_f to B), lock funds C,D,E but then not allowing it to relay funds (possibly do a griefing attack?). What I meant is that if one totally relies on S for the setup phase, won't it lead to other vulnerabilities? The situation might sound unrealistic but I still have doubt whether we guarantee fairness if put our trust entirely on one single entity.
Note that in the context of PTLCs, R does not get a key (as in private key) of x_a+x_b+x_c+x_d+x_e+x_f. Instead, R still continues to use its normal private key for claiming HTLC/PTLC. We simply have R generate an adaptor signature first and hand that over to F, such that completing the signature and publishing it onchain will reveal a secret x_r (which is NOT the node privkey of R).
What happens really here is that each hop sets up a PTLC. The sender is responsible for ensuring that the F->R PTLC is equal to x_r * G, that E->F is equal to (x_f + x_r) * G, that D->E is equal to (x_e + x_f + x_r) * G, and so on. However, the sender knows only (x_r * G) without knowing x_r, thus it never is able to completely control the secret at every point -- the receiver knows the other secret as well.
That is the entire crux of the argument --- *both* sender and receiver control the secrets anyway, so it is not controlled by a single entity, at least for non-self-payments.
Quoted text (1 line)
> If S colludes with B (possibly leak the value x_c,x_d,x_e,x_f to B), lock funds C,D,E but then not allowing it to relay funds (possibly do a griefing attack?).
Griefing attacks are only possible by not claiming or forwarding the attack. If S and B "collude" to perform a grief, then either B never forwards to C, in which case there is no possible way to attack, or C receives it and claims it but B does not claim it, in which case B paid out money and is now idiotically refusing to claim money.
Grief attacks are attacks by payers and payees on intermediate nodes (S and R attacking A,B,C,D,E,F), and in that case the entire payment secret would be known by both S and R anyway.
So S and B cannot cooperate to perform a griefing attack on the path.
Regards, ZmnSCPxj
Quoted text (38 lines)
> > On Wed, Apr 1, 2020 at 10:39 PM ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote: > > > Good morning Subhra, > > > > > Commenting on it : "As for ZmnSCPxj's suggestion, I think there is the same kind of issue. > > > The secrets we establish with anonymous multi-hops locks are between the *sender* > > > and each of the hops. In the route blinding case, what we're adding are secrets > > > between the *recipient* and the hops, and we don't want the sender to be able to > > > influence those." > > > Is it a good idea to rely entirely on the sender for sampling the secrets as well as generating the PTLC? As happens in anonymous multi-hops locks, for example. Or as it has been discussed later in the thread, both receiver and sender must be involved in creation of PTLC? What happens if sender/receiver is/(or both are) corrupted? Can it leak secrets to other parties? > > > > If both are corrupted, this brings up the question: who are you hiding any information from? > > The corruptor has already corrupted both: there is no security or privacy possible, the payment is already totally compromised. > > > > The operation of forwarding nodes is simple enough that in general they cannot be attacked: sure, the sender and receiver together knows who they are, but forwarding nodes are the ones who advertise themselves in order to be forwarded through, so they already are known anyway. > > > > When considering privacy, we should always consider that it is the payment as a whole which we want to have privacy: we want that third parties will not be able to nail down which particular sender sent to which particular receiver. > > Thus if the sender already leaks who it is paying to, that is pretty much the entire loss of privacy. > > > > Now, currently on Lightning, in general the receiver does not know the sender node. > > (Applications on top of Lightning might have the receiver require the sender to provide private data, such as a drop point to send a physical product to, but *looking only on Lightning* the sender does not send any of its information to the receiver). > > > > However, currently, the exact receiver node has to be known by the sender, in order for the sender to make a route to it. > > This is a concern since it may be possible for layer-crossing shenanigans to be performed, for example the sender might attempt to eclipse the receiver on the Bitcoin blockchain layer and make it lose funds by not realizing that a PTLC/HTLC has been timed out (because the eclipse attack prevents new blocks from propagating to the receiver, who blithely continues to think that the timeout has not been reached when in fact it has). > > > > The proposal to have a receiver provide a partial, blinded path gives the receiver better privacy protection against the sender: the sender knows it is one of a possible number of nodes within some number of hops from a particular node, but does not know if it is that exact node, one of its neighbors, or one of its neighbor neighbors (etc.) is the actual receiver. > > This should make it harder for the sender to attack the receiver by attempting to locate its node and eclipse it at the Bitcoin layer, or other blockchain-layer shenanigans. > > > > Now, the argument I make is that while the blinding factors in a decorrelated PTLC-based payment may be generated by the sender in order for the sender to have path privacy, it is safe for the receiver to provide blinding factors to a partial path as well. > > We should remember that the blinding factors are just scalars added to the final point/scalar at the ultimate recipient, and the final point/scalar pair is completely controlled by the recipient anyway, so it should not be an issue here: the point that the sender will target at the first node in the receiver-provided partial route is no different from the final point that the sender would have targeted if it knew exactly who the receiver is. > > > > Regards, > > ZmnSCPxj > > -- > Yours sincerely, > Subhra Mazumdar.
Thank you for the clarification. Sorry for misinterpreting the paper of anonymous multihop lock. A bit of rephrasing of what I exactly meant and apologies for describing vaguely. Following your discussion on griefing attack, it is clear the payer and payee wants to intentionally deprive intermediate nodes, by colluding. However, by griefing (a misnomer for this situation) I didn't mean exactly withholding the solution but something like this: Given S->A->B->C->D->E->F->R, S, B and F are controlled by the same adversary and considering all the parties have completed the lock phase. Now R triggers release phase and F gets x_r from R. However, F adds x_f to x_r forwards it directly to B, doesn't complete signature with E and cancels the HTLC just before the elapse of expiration time, E terminates its HTLC with D and so on. B has x_c+x_d+x_e+x_f+x_r (shared by F and shared by S). It continues normally completing payment with A and then S. I am not sure whether again this attack makes sense.
On Thu, Apr 2, 2020 at 6:04 AM ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote:
Quoted text (144 lines)
> Good morning Subhra, > > > Hi ZmnSCPxj, > > Thanks for the explanation. Pardon my knowledge in this domain but > what I meant is that sender has malicious intent and wants honest parties > to suffer. So by leaking secrets, I meant not revealing its or receiver's > identity to the forwarding nodes, but somehow manipulating subset of the > nodes so that an attack can be launched in the network. For example, > consider path S->A->B->C->D->E->F->R. If we consider the protocol anonymous > multihop lock, S samples secret x_a,x_b,x_c,x_d,x_e,x_f for the nodes > A,B,C,D,E and F respectively. R gets the key k=x_a+x_b+x_c+x_d+x_e+x_f. If > S colludes with B (possibly leak the value x_c,x_d,x_e,x_f to B), lock > funds C,D,E but then not allowing it to relay funds (possibly do a griefing > attack?). What I meant is that if one totally relies on S for the setup > phase, won't it lead to other vulnerabilities? The situation might sound > unrealistic but I still have doubt whether we guarantee fairness if put our > trust entirely on one single entity. > > Note that in the context of PTLCs, R does not get a key (as in private > key) of x_a+x_b+x_c+x_d+x_e+x_f. > Instead, R still continues to use its normal private key for claiming > HTLC/PTLC. > We simply have R generate an adaptor signature first and hand that over to > F, such that completing the signature and publishing it onchain will reveal > a secret x_r (which is NOT the node privkey of R). > > What happens really here is that each hop sets up a PTLC. > The sender is responsible for ensuring that the F->R PTLC is equal to x_r > * G, that E->F is equal to (x_f + x_r) * G, that D->E is equal to (x_e + > x_f + x_r) * G, and so on. > However, the sender knows only (x_r * G) without knowing x_r, thus it > never is able to completely control the secret at every point -- the > receiver knows the other secret as well. > > That is the entire crux of the argument --- *both* sender and receiver > control the secrets anyway, so it is not controlled by a single entity, at > least for non-self-payments. > > > If S colludes with B (possibly leak the value x_c,x_d,x_e,x_f to B), > lock funds C,D,E but then not allowing it to relay funds (possibly do a > griefing attack?). > > Griefing attacks are only possible by not claiming or forwarding the > attack. > If S and B "collude" to perform a grief, then either B never forwards to > C, in which case there is no possible way to attack, or C receives it and > claims it but B does not claim it, in which case B paid out money and is > now idiotically refusing to claim money. > > Grief attacks are attacks by payers and payees on intermediate nodes (S > and R attacking A,B,C,D,E,F), and in that case the entire payment secret > would be known by both S and R anyway. > > So S and B cannot cooperate to perform a griefing attack on the path. > > Regards, > ZmnSCPxj > > > > > On Wed, Apr 1, 2020 at 10:39 PM ZmnSCPxj <ZmnSCPxj at protonmail.com> > wrote: > > > > > Good morning Subhra, > > > > > > > Commenting on it : "As for ZmnSCPxj's suggestion, I think there is > the same kind of issue. > > > > The secrets we establish with anonymous multi-hops locks are between > the *sender* > > > > and each of the hops. In the route blinding case, what we're adding > are secrets > > > > between the *recipient* and the hops, and we don't want the sender > to be able to > > > > influence those." > > > > Is it a good idea to rely entirely on the sender for sampling the > secrets as well as generating the PTLC? As happens in anonymous multi-hops > locks, for example. Or as it has been discussed later in the thread, both > receiver and sender must be involved in creation of PTLC? What happens if > sender/receiver is/(or both are) corrupted? Can it leak secrets to other > parties? > > > > > > If both are corrupted, this brings up the question: who are you hiding > any information from? > > > The corruptor has already corrupted both: there is no security or > privacy possible, the payment is already totally compromised. > > > > > > The operation of forwarding nodes is simple enough that in general > they cannot be attacked: sure, the sender and receiver together knows who > they are, but forwarding nodes are the ones who advertise themselves in > order to be forwarded through, so they already are known anyway. > > > > > > When considering privacy, we should always consider that it is the > payment as a whole which we want to have privacy: we want that third > parties will not be able to nail down which particular sender sent to which > particular receiver. > > > Thus if the sender already leaks who it is paying to, that is pretty > much the entire loss of privacy. > > > > > > Now, currently on Lightning, in general the receiver does not know the > sender node. > > > (Applications on top of Lightning might have the receiver require the > sender to provide private data, such as a drop point to send a physical > product to, but *looking only on Lightning* the sender does not send any of > its information to the receiver). > > > > > > However, currently, the exact receiver node has to be known by the > sender, in order for the sender to make a route to it. > > > This is a concern since it may be possible for layer-crossing > shenanigans to be performed, for example the sender might attempt to > eclipse the receiver on the Bitcoin blockchain layer and make it lose funds > by not realizing that a PTLC/HTLC has been timed out (because the eclipse > attack prevents new blocks from propagating to the receiver, who blithely > continues to think that the timeout has not been reached when in fact it > has). > > > > > > The proposal to have a receiver provide a partial, blinded path gives > the receiver better privacy protection against the sender: the sender knows > it is one of a possible number of nodes within some number of hops from a > particular node, but does not know if it is that exact node, one of its > neighbors, or one of its neighbor neighbors (etc.) is the actual receiver. > > > This should make it harder for the sender to attack the receiver by > attempting to locate its node and eclipse it at the Bitcoin layer, or other > blockchain-layer shenanigans. > > > > > > Now, the argument I make is that while the blinding factors in a > decorrelated PTLC-based payment may be generated by the sender in order for > the sender to have path privacy, it is safe for the receiver to provide > blinding factors to a partial path as well. > > > We should remember that the blinding factors are just scalars added to > the final point/scalar at the ultimate recipient, and the final > point/scalar pair is completely controlled by the recipient anyway, so it > should not be an issue here: the point that the sender will target at the > first node in the receiver-provided partial route is no different from the > final point that the sender would have targeted if it knew exactly who the > receiver is. > > > > > > Regards, > > > ZmnSCPxj > > > > -- > > Yours sincerely, > > Subhra Mazumdar. > > >
Good morning Subhra,
Quoted text (2 lines)
> Thank you for the clarification. Sorry for misinterpreting the paper of anonymous multihop lock. A bit of rephrasing of what I exactly meant and apologies for describing vaguely. Following your discussion on griefing attack, it is clear the payer and payee wants to intentionally deprive intermediate nodes, by colluding. However, by griefing (a misnomer for this situation) I didn't mean exactly withholding the solution but something like this: > Given S->A->B->C->D->E->F->R, S, B and F are controlled by the same adversary and considering all the parties have completed the lock phase. Now R triggers release phase and F gets x_r from R. However, F adds x_f to x_r forwards it directly to B, doesn't complete signature with E and cancels the HTLC just before the elapse of expiration time, E terminates its HTLC with D and so on. B has x_c+x_d+x_e+x_f+x_r (shared by F and shared by S). It continues normally completing payment with A and then S. I am not sure whether again this attack makes sense.
If S controls F, then it could have just forwarded F->R directly without involving C D E at all, so in both cases C D E would also not earn any forwarding fees; instead now C D E learn of this payment, so the collusion S B F just unnecessarily leaks its intent to pay R by doing this.
Again, S B F cannot steal funds from C D E by this method, it can only grief them, but it could grief C D E by just B and F, not involving any S or R, so this does not increase the attack surface at all.
So I do not see the point of this exercise; S controls F anyway, so it could just as well have forwarded F->R directly.
Regards, ZmnSCPxj
Quoted text (72 lines)
> > On Thu, Apr 2, 2020 at 6:04 AM ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote: > > > Good morning Subhra, > > > > > Hi ZmnSCPxj, > > > Thanks for the explanation. Pardon my knowledge in this domain but what I meant is that sender has malicious intent and wants honest parties to suffer. So by leaking secrets, I meant not revealing its or receiver's identity to the forwarding nodes, but somehow manipulating subset of the nodes so that an attack can be launched in the network. For example, consider path S->A->B->C->D->E->F->R. If we consider the protocol anonymous multihop lock, S samples secret x_a,x_b,x_c,x_d,x_e,x_f for the nodes A,B,C,D,E and F respectively. R gets the key k=x_a+x_b+x_c+x_d+x_e+x_f. If S colludes with B (possibly leak the value x_c,x_d,x_e,x_f to B), lock funds C,D,E but then not allowing it to relay funds (possibly do a griefing attack?). What I meant is that if one totally relies on S for the setup phase, won't it lead to other vulnerabilities? The situation might sound unrealistic but I still have doubt whether we guarantee fairness if put our trust entirely on one single entity. > > > > Note that in the context of PTLCs, R does not get a key (as in private key) of x_a+x_b+x_c+x_d+x_e+x_f. > > Instead, R still continues to use its normal private key for claiming HTLC/PTLC. > > We simply have R generate an adaptor signature first and hand that over to F, such that completing the signature and publishing it onchain will reveal a secret x_r (which is NOT the node privkey of R). > > > > What happens really here is that each hop sets up a PTLC. > > The sender is responsible for ensuring that the F->R PTLC is equal to x_r * G, that E->F is equal to (x_f + x_r) * G, that D->E is equal to (x_e + x_f + x_r) * G, and so on. > > However, the sender knows only (x_r * G) without knowing x_r, thus it never is able to completely control the secret at every point -- the receiver knows the other secret as well. > > > > That is the entire crux of the argument --- *both* sender and receiver control the secrets anyway, so it is not controlled by a single entity, at least for non-self-payments. > > > > > If S colludes with B (possibly leak the value x_c,x_d,x_e,x_f to B), lock funds C,D,E but then not allowing it to relay funds (possibly do a griefing attack?). > > > > Griefing attacks are only possible by not claiming or forwarding the attack. > > If S and B "collude" to perform a grief, then either B never forwards to C, in which case there is no possible way to attack, or C receives it and claims it but B does not claim it, in which case B paid out money and is now idiotically refusing to claim money. > > > > Grief attacks are attacks by payers and payees on intermediate nodes (S and R attacking A,B,C,D,E,F), and in that case the entire payment secret would be known by both S and R anyway. > > > > So S and B cannot cooperate to perform a griefing attack on the path. > > > > Regards, > > ZmnSCPxj > > > > > > > > On Wed, Apr 1, 2020 at 10:39 PM ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote: > > > > > > > Good morning Subhra, > > > > > > > > > Commenting on it : "As for ZmnSCPxj's suggestion, I think there is the same kind of issue. > > > > > The secrets we establish with anonymous multi-hops locks are between the *sender* > > > > > and each of the hops. In the route blinding case, what we're adding are secrets > > > > > between the *recipient* and the hops, and we don't want the sender to be able to > > > > > influence those." > > > > > Is it a good idea to rely entirely on the sender for sampling the secrets as well as generating the PTLC? As happens in anonymous multi-hops locks, for example. Or as it has been discussed later in the thread, both receiver and sender must be involved in creation of PTLC? What happens if sender/receiver is/(or both are) corrupted? Can it leak secrets to other parties? > > > > > > > > If both are corrupted, this brings up the question: who are you hiding any information from? > > > > The corruptor has already corrupted both: there is no security or privacy possible, the payment is already totally compromised. > > > > > > > > The operation of forwarding nodes is simple enough that in general they cannot be attacked: sure, the sender and receiver together knows who they are, but forwarding nodes are the ones who advertise themselves in order to be forwarded through, so they already are known anyway. > > > > > > > > When considering privacy, we should always consider that it is the payment as a whole which we want to have privacy: we want that third parties will not be able to nail down which particular sender sent to which particular receiver. > > > > Thus if the sender already leaks who it is paying to, that is pretty much the entire loss of privacy. > > > > > > > > Now, currently on Lightning, in general the receiver does not know the sender node. > > > > (Applications on top of Lightning might have the receiver require the sender to provide private data, such as a drop point to send a physical product to, but *looking only on Lightning* the sender does not send any of its information to the receiver). > > > > > > > > However, currently, the exact receiver node has to be known by the sender, in order for the sender to make a route to it. > > > > This is a concern since it may be possible for layer-crossing shenanigans to be performed, for example the sender might attempt to eclipse the receiver on the Bitcoin blockchain layer and make it lose funds by not realizing that a PTLC/HTLC has been timed out (because the eclipse attack prevents new blocks from propagating to the receiver, who blithely continues to think that the timeout has not been reached when in fact it has). > > > > > > > > The proposal to have a receiver provide a partial, blinded path gives the receiver better privacy protection against the sender: the sender knows it is one of a possible number of nodes within some number of hops from a particular node, but does not know if it is that exact node, one of its neighbors, or one of its neighbor neighbors (etc.) is the actual receiver. > > > > This should make it harder for the sender to attack the receiver by attempting to locate its node and eclipse it at the Bitcoin layer, or other blockchain-layer shenanigans. > > > > > > > > Now, the argument I make is that while the blinding factors in a decorrelated PTLC-based payment may be generated by the sender in order for the sender to have path privacy, it is safe for the receiver to provide blinding factors to a partial path as well. > > > > We should remember that the blinding factors are just scalars added to the final point/scalar at the ultimate recipient, and the final point/scalar pair is completely controlled by the recipient anyway, so it should not be an issue here: the point that the sender will target at the first node in the receiver-provided partial route is no different from the final point that the sender would have targeted if it knew exactly who the receiver is. > > > > > > > > Regards, > > > > ZmnSCPxj > > > > > > -- > > > Yours sincerely, > > > Subhra Mazumdar. > > -- > Yours sincerely, > Subhra Mazumdar.
Hi ZmnSCPxj,
Thank you for the clarification.I got your point.
On Thu, Apr 2, 2020 at 1:35 PM ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote:
Quoted text (186 lines)
> Good morning Subhra, > > > Thank you for the clarification. Sorry for misinterpreting the paper of > anonymous multihop lock. A bit of rephrasing of what I exactly meant and > apologies for describing vaguely. Following your discussion on griefing > attack, it is clear the payer and payee wants to intentionally deprive > intermediate nodes, by colluding. However, by griefing (a misnomer for this > situation) I didn't mean exactly withholding the solution but something > like this: > > Given S->A->B->C->D->E->F->R, S, B and F are controlled by the same > adversary and considering all the parties have completed the lock phase. > Now R triggers release phase and F gets x_r from R. However, F adds x_f to > x_r forwards it directly to B, doesn't complete signature with E and > cancels the HTLC just before the elapse of expiration time, E terminates > its HTLC with D and so on. B has x_c+x_d+x_e+x_f+x_r (shared by F and > shared by S). It continues normally completing payment with A and then S. I > am not sure whether again this attack makes sense. > > If S controls F, then it could have just forwarded F->R directly without > involving C D E at all, so in both cases C D E would also not earn any > forwarding fees; instead now C D E learn of this payment, so the collusion > S B F just unnecessarily leaks its intent to pay R by doing this. > > Again, S B F cannot steal funds from C D E by this method, it can only > grief them, but it could grief C D E by just B and F, not involving any S > or R, so this does not increase the attack surface at all. > > So I do not see the point of this exercise; S controls F anyway, so it > could just as well have forwarded F->R directly. > > Regards, > ZmnSCPxj > > > > > > On Thu, Apr 2, 2020 at 6:04 AM ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote: > > > > > Good morning Subhra, > > > > > > > Hi ZmnSCPxj, > > > > Thanks for the explanation. Pardon my knowledge in this domain > but what I meant is that sender has malicious intent and wants honest > parties to suffer. So by leaking secrets, I meant not revealing its or > receiver's identity to the forwarding nodes, but somehow manipulating > subset of the nodes so that an attack can be launched in the network. For > example, consider path S->A->B->C->D->E->F->R. If we consider the protocol > anonymous multihop lock, S samples secret x_a,x_b,x_c,x_d,x_e,x_f for the > nodes A,B,C,D,E and F respectively. R gets the key > k=x_a+x_b+x_c+x_d+x_e+x_f. If S colludes with B (possibly leak the value > x_c,x_d,x_e,x_f to B), lock funds C,D,E but then not allowing it to relay > funds (possibly do a griefing attack?). What I meant is that if one totally > relies on S for the setup phase, won't it lead to other vulnerabilities? > The situation might sound unrealistic but I still have doubt whether we > guarantee fairness if put our trust entirely on one single entity. > > > > > > Note that in the context of PTLCs, R does not get a key (as in private > key) of x_a+x_b+x_c+x_d+x_e+x_f. > > > Instead, R still continues to use its normal private key for claiming > HTLC/PTLC. > > > We simply have R generate an adaptor signature first and hand that > over to F, such that completing the signature and publishing it onchain > will reveal a secret x_r (which is NOT the node privkey of R). > > > > > > What happens really here is that each hop sets up a PTLC. > > > The sender is responsible for ensuring that the F->R PTLC is equal to > x_r * G, that E->F is equal to (x_f + x_r) * G, that D->E is equal to (x_e > + x_f + x_r) * G, and so on. > > > However, the sender knows only (x_r * G) without knowing x_r, thus it > never is able to completely control the secret at every point -- the > receiver knows the other secret as well. > > > > > > That is the entire crux of the argument --- *both* sender and receiver > control the secrets anyway, so it is not controlled by a single entity, at > least for non-self-payments. > > > > > > > If S colludes with B (possibly leak the value x_c,x_d,x_e,x_f to B), > lock funds C,D,E but then not allowing it to relay funds (possibly do a > griefing attack?). > > > > > > Griefing attacks are only possible by not claiming or forwarding the > attack. > > > If S and B "collude" to perform a grief, then either B never forwards > to C, in which case there is no possible way to attack, or C receives it > and claims it but B does not claim it, in which case B paid out money and > is now idiotically refusing to claim money. > > > > > > Grief attacks are attacks by payers and payees on intermediate nodes > (S and R attacking A,B,C,D,E,F), and in that case the entire payment secret > would be known by both S and R anyway. > > > > > > So S and B cannot cooperate to perform a griefing attack on the path. > > > > > > Regards, > > > ZmnSCPxj > > > > > > > > > > > On Wed, Apr 1, 2020 at 10:39 PM ZmnSCPxj <ZmnSCPxj at protonmail.com> > wrote: > > > > > > > > > Good morning Subhra, > > > > > > > > > > > Commenting on it : "As for ZmnSCPxj's suggestion, I think there > is the same kind of issue. > > > > > > The secrets we establish with anonymous multi-hops locks are > between the *sender* > > > > > > and each of the hops. In the route blinding case, what we're > adding are secrets > > > > > > between the *recipient* and the hops, and we don't want the > sender to be able to > > > > > > influence those." > > > > > > Is it a good idea to rely entirely on the sender for sampling > the secrets as well as generating the PTLC? As happens in anonymous > multi-hops locks, for example. Or as it has been discussed later in the > thread, both receiver and sender must be involved in creation of PTLC? What > happens if sender/receiver is/(or both are) corrupted? Can it leak secrets > to other parties? > > > > > > > > > > If both are corrupted, this brings up the question: who are you > hiding any information from? > > > > > The corruptor has already corrupted both: there is no security or > privacy possible, the payment is already totally compromised. > > > > > > > > > > The operation of forwarding nodes is simple enough that in general > they cannot be attacked: sure, the sender and receiver together knows who > they are, but forwarding nodes are the ones who advertise themselves in > order to be forwarded through, so they already are known anyway. > > > > > > > > > > When considering privacy, we should always consider that it is the > payment as a whole which we want to have privacy: we want that third > parties will not be able to nail down which particular sender sent to which > particular receiver. > > > > > Thus if the sender already leaks who it is paying to, that is > pretty much the entire loss of privacy. > > > > > > > > > > Now, currently on Lightning, in general the receiver does not know > the sender node. > > > > > (Applications on top of Lightning might have the receiver require > the sender to provide private data, such as a drop point to send a physical > product to, but *looking only on Lightning* the sender does not send any of > its information to the receiver). > > > > > > > > > > However, currently, the exact receiver node has to be known by the > sender, in order for the sender to make a route to it. > > > > > This is a concern since it may be possible for layer-crossing > shenanigans to be performed, for example the sender might attempt to > eclipse the receiver on the Bitcoin blockchain layer and make it lose funds > by not realizing that a PTLC/HTLC has been timed out (because the eclipse > attack prevents new blocks from propagating to the receiver, who blithely > continues to think that the timeout has not been reached when in fact it > has). > > > > > > > > > > The proposal to have a receiver provide a partial, blinded path > gives the receiver better privacy protection against the sender: the sender > knows it is one of a possible number of nodes within some number of hops > from a particular node, but does not know if it is that exact node, one of > its neighbors, or one of its neighbor neighbors (etc.) is the actual > receiver. > > > > > This should make it harder for the sender to attack the receiver > by attempting to locate its node and eclipse it at the Bitcoin layer, or > other blockchain-layer shenanigans. > > > > > > > > > > Now, the argument I make is that while the blinding factors in a > decorrelated PTLC-based payment may be generated by the sender in order for > the sender to have path privacy, it is safe for the receiver to provide > blinding factors to a partial path as well. > > > > > We should remember that the blinding factors are just scalars > added to the final point/scalar at the ultimate recipient, and the final > point/scalar pair is completely controlled by the recipient anyway, so it > should not be an issue here: the point that the sender will target at the > first node in the receiver-provided partial route is no different from the > final point that the sender would have targeted if it knew exactly who the > receiver is. > > > > > > > > > > Regards, > > > > > ZmnSCPxj > > > > > > > > -- > > > > Yours sincerely, > > > > Subhra Mazumdar. > > > > -- > > Yours sincerely, > > Subhra Mazumdar. > > >