How do lightning node implementations deal with receiving 2 keysend funds with the identical preimage?

on

|

views

and

comments


The explanation why preimages should not be reused, is as a result of it permits anybody alongside the routing path that has beforehand already seen (and saved) the preimage to say these funds with out forwarding the fee to the meant vacation spot. See additionally Reuse of fee hash in Lightning Community

How would the receiver be capable to distinguish between these two funds?

I am undecided about how the Lightning Node implementations deal with this in follow, however in principle, they need not. Anytime your node receives an HTLC for which you already know the preimage of the hash (both since you generated the preimage, or as a result of the sender included the preimage within the HTLC as per the keysend spec), you may declare the funds dedicated to by that HTLC.

See additionally How do ‘Sphinx’ invoice-less funds on the Lightning Community work?

Share this
Tags

Must-read

Waymo raises $16bn to gas international robotaxi enlargement | Know-how

Self-driving automobile firm Waymo on Monday stated it raised $16bn in a funding spherical that valued the Alphabet subsidiary at $126bn.Waymo co-chief executives...

Self-driving taxis are coming to London – ought to we be anxious? | Jack Stilgoe

At the top of the nineteenth century, the world’s main cities had an issue. The streets had been flooded with manure, the unintended...

US regulators open inquiry into Waymo self-driving automobile that struck youngster in California | Expertise

The US’s federal transportation regulator stated Thursday it had opened an investigation after a Waymo self-driving car struck a toddler close to an...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here