<oembed><type>rich</type><version>1.0</version><author_name>npub1gqdch553m0nqcg47xullf030qfnlyrm9pmneyxkdgexv4mmkclrqhgnzxe</author_name><author_url>https://nostr.ae/npub1gqdch553m0nqcg47xullf030qfnlyrm9pmneyxkdgexv4mmkclrqhgnzxe</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2023-01-03&#xA;🗒️ Summary of this message: A proposal suggests using a swap-in-potentiam address to draw upon liquidity when making LN payments without waiting for an on-chain transaction. This can work in reverse to increase inbound liquidity on-demand. The proposal offers advantages such as allowing the LN wallet to remain offline and being easier to implement.&#xA;📝 Original message:&#xA;Hi David,&#xA;&#xA;Consider a scenario where Alice receives on-chain funds while her mobile&#xA;wallet&#xA;app is not running. The app can&#39;t perform a splice-in until it is opened.&#xA;Let&#39;s&#xA;say she doesn&#39;t open the app until she is ready to buy her coffee with an LN&#xA;payment, and there&#39;s not sufficient outbound liquidity in the channel to&#xA;make&#xA;the payment. At that point, it&#39;s inconvenient for Alice to have to wait for&#xA;an&#xA;on-chain splice-in to confirm before she can buy her coffee.&#xA;&#xA;However, if she received on-chain funds with a swap-in-potentiam address,&#xA;the&#xA;app can draw upon the liquidity when the LN payment needs to be made without&#xA;having to wait for an on-chain transaction. Furthermore, Alice can defer her&#xA;decision about whether she wants to pay the fees to increase her outbound&#xA;liquidity until she needs the liquidity.&#xA;&#xA;Similarly, this process can work in reverse, such that she can increase her&#xA;inbound liquidity in the channel, and pay for it, on-demand when the&#xA;liquidity&#xA;is needed and not before.&#xA;&#xA;All the best,&#xA;&#xA;Jesse&#xA;&#xA;On Tue, Jan 3, 2023 at 10:36 AM David A. Harding &lt;dave at dtrt.org&gt; wrote:&#xA;&#xA;&gt; On 2023-01-03 03:57, ZmnSCPxj via Lightning-dev wrote:&#xA;&gt; &gt; The contract has two participants: Alice the funds owner, and&#xA;&gt; &gt; Bob its potential swap partner.&#xA;&gt; &gt; [...]&#xA;&gt; &gt; The contract has only 2 branches:&#xA;&gt; &gt;&#xA;&gt; &gt; * Onchain/channel branch: Alice and Bob.&#xA;&gt; &gt; * Timelock branch: Alice plus a relative timelock (`OP_CSV`)&#xA;&gt; &gt;   measurable in weeks.&#xA;&gt;&#xA;&gt; Good morning Jesse and ZmnSCPxj,&#xA;&gt;&#xA;&gt; Is the following an accurate summary of the proposal&#39;s benefits and&#xA;&gt; costs? At some point x blocks before Alice expects she might want to&#xA;&gt; spend her funds on LN (but also wants the option to quickly spend her&#xA;&gt; funds onchain), she enters into a contract protocol with Bob.  At any&#xA;&gt; time, with Bob&#39;s cooperation, she can send an onchain transaction.  Or,&#xA;&gt; after the contract protocol deposit transaction gets x confirmations,&#xA;&gt; Alice can instantly fund a fully initialized LN channel with Bob&#39;s&#xA;&gt; cooperation, from which she can immediately send LN payments.&#xA;&gt;&#xA;&gt; If the above is accurate, how does that compare to splice outs?  For&#xA;&gt; example: at some point x blocks before Alice expects she might want to&#xA;&gt; spend her funds on LN (but also wants the option to quickly spend her&#xA;&gt; funds onchain), she enters into a contract protocol with Bob by opening&#xA;&gt; an LN channel.  At any time, with Bob&#39;s cooperation, she can send an&#xA;&gt; onchain transaction using a splice out.  Or, after the contract protocol&#xA;&gt; (LN) deposit transaction gets x confirmations, Alice now has a funded&#xA;&gt; fully initialized LN channel with Bob&#39;s participation as counterparty,&#xA;&gt; from which she can immediately send LN payments.&#xA;&gt;&#xA;&gt; If the value for x blocks is the same in both cases, those two scenarios&#xA;&gt; look very similar to me.&#xA;&gt;&#xA;&gt; The only advantages I see of your proposal are:&#xA;&gt;&#xA;&gt; 1. It allows Alice&#39;s LN wallet to remain offline indefinitely---but only&#xA;&gt; if Alice doesn&#39;t have any other funds in open channels.&#xA;&gt; 2. It&#39;s easier to implement than splice-outs (I would guess)---but it&#xA;&gt; also only provides the benefits of sending onchain payments at the time&#xA;&gt; before the first LN transaction is made, whereas actual splice out can&#xA;&gt; be used any time in a channel&#39;s lifetime to immediately send onchain&#xA;&gt; payments.&#xA;&gt;&#xA;&gt; Am I missing something?&#xA;&gt;&#xA;&gt; -Dave&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230103/8ef5ad59/attachment.html&gt;</html></oembed>