What is Nostr?
ZmnSCPxj [ARCHIVE] /
npub1g5z…ms3l
2023-06-09 12:53:20
in reply to nevent1q…yhs0

ZmnSCPxj [ARCHIVE] on Nostr: 📅 Original date posted:2018-12-04 📝 Original message: Good morning CJP, > I ...

📅 Original date posted:2018-12-04
📝 Original message:
Good morning CJP,


> I think we could stop this type of attack by including some kind of
> shared secret in the onion message to the final node:

I think we get this "for free" if we switch to path decorrelation and points+privkeys instead of hashes+preimages.

Path decorrelation means that each hop is given a random point, to be added to the next SS "HTLC".
The final node needs to be given the total of the scalars of each hop random point along the route, most likely within the last hop of the onion.
The final node also cannot differentiate between an incorrect total for this scalar, or an incorrect "invoice hash"/invoice point.

Hence, some intermediate node along the way cannot guess this, and the final node will give the same error, i.e. "invoice point not found".

Regards,
ZmnSCPxj
Author Public Key
npub1g5zswf6y48f7fy90jf3tlcuwdmjn8znhzaa4vkmtxaeskca8hpss23ms3l