Why Nostr? What is Njump?
2023-06-09 12:46:28
in reply to

Olaoluwa Osuntokun [ARCHIVE] on Nostr: 📅 Original date posted:2016-08-22 📝 Original message: On Sun, Aug 21, 2016 at ...

📅 Original date posted:2016-08-22
📝 Original message:
On Sun, Aug 21, 2016 at 1:46 PM Rusty Russell <rusty at rustcorp.com.au> wrote:

> > This may not fully solve the problem, since if one presumes that the
> > second-to-last hop is malicious, they can re-create a new onion blob
> > (presuming consistent hashes for each hop, of course).
>
> Great catch. Oops...
>

During the whole payment negotiation process, the sender and receiver can
additionally agree on a shared secret-ish value (possibly the hash of the
contract) that should be included in the per-hop payload for the final hop.

If the portion of the per-hop payload doesn't match identically with this
value, then the payment should be rejected as a prior node has
unsuccessfully attempted re-create the onion packet.


-- Laolu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20160822/1a545f72/attachment.html>;
Author Public Key
npub19helcfnqgk2jrwzjex2aflq6jwfc8zd9uzzkwlgwhve7lykv23mq5zkvn4