What is Nostr?
Christian Decker [ARCHIVE] /
npub1wtx…tuyn
2023-06-09 12:46:43
in reply to nevent1q…gdzk

Christian Decker [ARCHIVE] on Nostr: 📅 Original date posted:2016-09-10 📝 Original message: On Sat, Sep 10, 2016 at ...

📅 Original date posted:2016-09-10
📝 Original message:
On Sat, Sep 10, 2016 at 06:16:07AM -0500, Ryan Grant wrote:
> Payments unexpectedly fragmented into multiple LN channels are
> trickier than transactions spending multiple UTXOs. If Alice pays Bob
> using multiple channels to fund one payment, then Bob's accounting
> procedures might need time-based heuristics to join separate LN
> transactions.
>
> Wherever payments might fragment, some reassembly protocol support,
> like BIP 70's merchant_data field, should be available. Every wallet
> should be assisting with this accounting.
>

At least for the implementation using the r-hash to condition the
release of funds there is nothing special about splitting a
payment. As long as the recipient knows the total amount it should be
receiving it can delay the release of the secret until it is
guaranteed all funds. Collating the partial payments is done with the
r-hash. I'm pretty sure that the private key release would also work
the same way.

A timeout might be sensible though just to be able to safely retry
should a partial payment get stuck.

In theory Lightning would also support arbitrary splitting and merging
along the paths of the payment. Not sure if this is still possible (or
desirable) when adding Onion Routing to the mix though :-)

Cheers,
Christian
Author Public Key
npub1wtx5qvewc7pd6znlvwktq03mdld05mv3h5dkzfwd3dc30gdmsptsugtuyn