<oembed><type>rich</type><version>1.0</version><title>ZmnSCPxj [ARCHIVE] wrote</title><author_name>ZmnSCPxj [ARCHIVE] (npub1g5…3ms3l)</author_name><author_url>https://yabu.me/npub1g5zswf6y48f7fy90jf3tlcuwdmjn8znhzaa4vkmtxaeskca8hpss23ms3l</author_url><provider_name>njump</provider_name><provider_url>https://yabu.me</provider_url><html>📅 Original date posted:2018-11-13&#xA;📝 Original message:&#xA;Good morning list,&#xA;&#xA;I propose the below to support Base AMP.&#xA;&#xA;The below would allow arbitrary merges of paths, but not arbitrary splits.  I am uncertain about the safety of arbitrary splits.&#xA;&#xA;### The `multipath_merge_per_hop` type (`option_base_amp`)&#xA;&#xA;This indicates that payment has been split by the sender using Base AMP, and that the receiver should wait for the total intended payment before forwarding or claiming the payment.&#xA;In case the receiving node is not the last node in the path, then succeeding hops MUST be the same across all splits.&#xA;&#xA;1. type: 1 (`termination_per_hop`)&#xA;2. data:&#xA;  * [`8` : `short_channel_id`]&#xA;  * [`8` : `amt_to_forward`]&#xA;  * [`4` : `outgoing_cltv_value`]&#xA;  * [`8` : `intended_total_payment`]&#xA;  * [`4` : `zeros`]&#xA;&#xA;The contents of this hop will be the same across all paths of the Base AMP.&#xA;The `payment_hash` of the incoming HTLCs will also be the same across all paths of the Base AMP.&#xA;&#xA;`intended_total_payment` is the total amount of money that this node should expect to receive in all incoming paths to the same `payment_hash`.&#xA;&#xA;This may be the last hop of a payment onion, in which case the `HMAC` for this hop will be `0` (the same rule as for `per_hop_type` 0).&#xA;&#xA;The receiver:&#xA;&#xA;* MUST impose a reasonable timeout for waiting to receive all component paths, and fail all incoming HTLC offers for the `payment_hash`  if they have not totalled equal to `intended_total_payment`.&#xA;* MUST NOT forward (if an intermediate node) or claim (if the final node) unless it has received a total greater or equal to `intended_total_payment` in all incoming HTLCs for the same `payment_hash`.&#xA;&#xA;The sender:&#xA;&#xA;* MUST use the same `payment_hash` for all paths of a single multipath payment.&#xA;&#xA;Regards,&#xA;ZmnSCPxj&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20181113/68585bf8/attachment.html&gt;</html></oembed>