<oembed><type>rich</type><version>1.0</version><author_name>npub17rld56k4365lfphyd8u8kwuejey5xcazdxptserx03wc4jc9g24stx9l2h</author_name><author_url>https://nostr.ae/npub17rld56k4365lfphyd8u8kwuejey5xcazdxptserx03wc4jc9g24stx9l2h</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2023-01-04&#xA;🗒️ Summary of this message: A proposal for using a covenant to establish a channel without an expiry date, allowing it to be a first-class citizen among channels.&#xA;📝 Original message:&#xA;On Wed, Jan 04, 2023 at 01:06:36PM +1100, Lloyd Fournier wrote:&#xA;&gt; The advantage of using a covenant&#xA;&gt; is that the channel would not have an expiry date and therefore be a first&#xA;&gt; class citizen among channels.&#xA;&#xA;I think the approach here would be:&#xA;&#xA; * receive funds on the in-potentiam address with 8000 block CSV&#xA; * LSP tracks immediately&#xA; * user&#39;s wallet wakes up, LSP reports address to user, user signs&#xA;   a funding tx to establish the channel, and the state 0 close tx&#xA; * LSP considers it immediately active&#xA; * LSP broadcasts the tx, targeting confirmation within 3 days&#xA; * if the funding tx confirms promptly, you just have an ordinary channel&#xA; * after 800 blocks, if the tx hasn&#39;t confirmed, LSP fee bumps or&#xA;   closes the channel (relying on the high-feerate unilateral close&#xA;   tx to do the fee bumping)&#xA;&#xA;ie:&#xA;&#xA; day 0: someone -&gt; in-potentiam address (payment made on-chain, confirmed)&#xA;&#xA; day 7: in-potentiam -&gt; funding (wallet wakes up, tx signed and broadcast,&#xA;          not necessarily confirmed, channel active)&#xA;&#xA; day 12: in-potentiam -&gt; funding (confirmed)&#xA;&#xA; day 9999: funding -&gt; unilateral/cooperative close&#xA;&#xA;or:&#xA;&#xA; day 0: someone -&gt; in-potentiam address (payment made on-chain, confirmed)&#xA;&#xA; day 14: LSP forgets about in-potentiam utxo as its expiry is only 1000&#xA;         blocks away&#xA;&#xA; day 420: in-potentiam -&gt; wherever (payment made on-chain by user)&#xA;&#xA;So while the tx introspection approach you advocate *would* allow the&#xA;setup phase to skip the &#34;expiry on day 14&#34; restriction, I think the&#xA;*bigger* benefit is that you also wouldn&#39;t need the on-chain &#34;in-potentiam&#xA;-&gt; funding&#34; transaction, but could instead just leave the in-potentiam&#xA;tx on chain indefinitely, until it was time to close the channel (which,&#xA;if it was a cooperative close, could just be a musig key path spend).&#xA;&#xA;Either approach probably implies that you either have multiple channels&#xA;with your LSP (one for each in-potentiam payment you receive), or&#xA;that your single channel with your LSP is backed by multiple UTXOs&#xA;(maybe you choose an order for them, so that Alice owns 100% of the&#xA;balance in utxos 1..(k-1) and Bob owns 100% of the balance in utxos&#xA;(k+1)..n?). Otherwise you&#39;d need an on-chain tx anyway to splice the new&#xA;funds into your existing channel; and that seems both annoying of itself,&#xA;and probably bad for privacy.&#xA;&#xA;Cheers,&#xA;aj</html></oembed>