Return-Path: Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id A110FC016E for ; Wed, 3 Jun 2020 14:50:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 655AD848AA for ; Wed, 3 Jun 2020 14:50:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oA39yfyowhyI for ; Wed, 3 Jun 2020 14:50:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-40140.protonmail.ch (mail-40140.protonmail.ch [185.70.40.140]) by fraxinus.osuosl.org (Postfix) with ESMTPS id BF95986B22 for ; Wed, 3 Jun 2020 14:50:11 +0000 (UTC) Date: Wed, 03 Jun 2020 14:50:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1591195809; bh=S+943qxC+Ph2Lv/ZNkucSo2602HOp47tAF/xqkVv2EY=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=qEl85SA7xPuRTqZ/dum9yg5kMVVTEa/UpscuqAiMdcv4AW7hPsOwbDYi+TG+rcx2U NTdi8QeoYLJkwSI6yvInD3vHuGenTtCIH3NR1CkOND4X/LDYjeCj84T07yseIAbYaz xZ6faK1ZHE1js6xAc6sCIhFX5HEHXb8neYbErL4k= To: ZmnSCPxj , Bitcoin Protocol Discussion From: ZmnSCPxj Reply-To: ZmnSCPxj Message-ID: <0U3wfLU9DpPZ7pwMOAr4xned-mOcHrpje4aLLiXZOt1qGuMhhyh36kAYJMEyv9bNjH2pMEzkkKK2rkAt9BD2pv_XknjdeqxEkEFsfSr4JAc=@protonmail.com> In-Reply-To: <5LiZqpFxklAAbGFiiAE3ijRbIteODXKcHrXvGJ-qabgQj5hG8beFtHNbVZ-XUxETVwduJYz94UYuJGAPxBrbGeZpSClUtXYsPJBABfr03KM=@protonmail.com> References: <82d90d57-ad07-fc7d-4aca-2b227ac2068d@riseup.net> <5LiZqpFxklAAbGFiiAE3ijRbIteODXKcHrXvGJ-qabgQj5hG8beFtHNbVZ-XUxETVwduJYz94UYuJGAPxBrbGeZpSClUtXYsPJBABfr03KM=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [bitcoin-dev] Design for a CoinSwap implementation for massively improving Bitcoin privacy and fungibility X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2020 14:50:33 -0000 Good morning Chris again, > For the avoidance of theft, it is probably better for Bob to wait for Ali= ce-side funding tx to confirm, probably deeply because reorgs suck. Over in Lightning-land, we have a concept called "irrevocably committed". This is a state where a newly-created contract can no longer be cancelled, = by publishing an older state. In Lightning, there is a short timeframe where a new state, and its directl= y previous state, are both still valid, until the previous state is revoked= . Only once the previous state (that does not contain the contract) has been = revoked, and only the latest state is valid, can a forwarding node actually= forward the payment. This is roughly equivalent to the funding tx for the CoinSwap being confirm= ed. Until a transaction is confirmed, the UTXOs it spends (i.e. the previous st= ate) can still be validly spent by other alternate transactions. Regards, ZmnSCPxj