<oembed><type>rich</type><version>1.0</version><author_name>npub1tsl0vdp4gegx6p7m073lphfl7zcrctud0qhutzf63up2h6r2kdcq99cyxz</author_name><author_url>https://nostr.ae/npub1tsl0vdp4gegx6p7m073lphfl7zcrctud0qhutzf63up2h6r2kdcq99cyxz</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2023-05-23&#xA;🗒️ Summary of this message: A discussion on the potential risks of using Lightning Network and Atomic Swap Protocol (ASP) for Bitcoin transactions without waiting for on-chain confirmations.&#xA;📝 Original message:Do you have any write up that presents a fully detailed architecture,&#xA;including mechanisms like bitcoin scripts, transactions and L2 protocols,&#xA;and then derives claims from that base?&#xA;&#xA;On Tue, May 23, 2023, 5:59 AM Burak Keceli via bitcoin-dev &lt;&#xA;bitcoin-dev at lists.linuxfoundation.org&gt; wrote:&#xA;&#xA;&gt; &gt; As the access to Lightning is also by the (same?) ASP, it seems to me&#xA;&gt; that the ASP will simply fail to forward the payment on the broader&#xA;&gt; Lightning network after it has replaced the in-mempool transaction,&#xA;&gt; preventing recipients from actually being able to rely on any received&#xA;&gt; funds existing until the next pool transaction is confirmed.&#xA;&gt;&#xA;&gt; Yes, that&#39;s correct. Lightning payments are routed through ASPs. ASP may&#xA;&gt; not cooperate in forwarding HTLC(s) AFTER double-spending their pool&#xA;&gt; transaction. However, it&#39;s a footgun if ASP forwards HTLC(s) BEFORE&#xA;&gt; double-spending their pool transaction.&#xA;&gt;&#xA;&gt; What makes Ark magical is, in the collaborative case, users&#39; ability to&#xA;&gt; pay lightning invoices with their zero-conf vTXOs, without waiting for&#xA;&gt; on-chain confirmations.&#xA;&gt;&#xA;&gt; This is the opposite of swap-ins, where users SHOULD wait for on-chain&#xA;&gt; confirmations before revealing their preimage of the HODL invoice;&#xA;&gt; otherwise, the swap service provider can steal users&#39; sats by&#xA;&gt; double-spending their zero-conf HTLC.&#xA;&gt; _______________________________________________&#xA;&gt; bitcoin-dev mailing list&#xA;&gt; bitcoin-dev at lists.linuxfoundation.org&#xA;&gt; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20230523/0870c6d9/attachment.html&gt;</html></oembed>