Return-Path: Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 594D6C000E for ; Tue, 29 Jun 2021 09:26:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 33E9E8318B for ; Tue, 29 Jun 2021 09:26:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -2.8 X-Spam-Level: X-Spam-Status: No, score=-2.8 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=riseup.net Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BHV33QZgVEgZ for ; Tue, 29 Jun 2021 09:26:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by smtp1.osuosl.org (Postfix) with ESMTPS id 5E16082EF0 for ; Tue, 29 Jun 2021 09:26:07 +0000 (UTC) Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4GDfH272DHzDrhp for ; Tue, 29 Jun 2021 02:26:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1624958767; bh=YqMuPusaPsiOcMA9xgMM4I1p4T0F4L86ge56JzO2WpM=; h=Subject:To:References:From:Date:In-Reply-To:From; b=nAFgTwdUw39ob37V7BDcn07HumM7QgmG+0qqSm2K/NPmsYrH+1tD7nehvEePAMdF4 pj0YZdAVGYJq3IKE33Pc4p9t6HKLt/Y2FVUDNFTUZyNtNc0/HGk6CAb7AYA0S1WTTQ wDdRbWSqkQeRCKcjNZL9XtrfwMAF3vZ9qxp7et4U= X-Riseup-User-ID: F568D6EE55A31927D89D34D9A8D257E5EDF146641E03578FD9C69FF4880EA484 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4GDfH22n0gz21lm for ; Tue, 29 Jun 2021 02:26:06 -0700 (PDT) To: bitcoin-dev@lists.linuxfoundation.org References: From: Chris Belcher Message-ID: <472cb1f4-33c8-33c8-9889-e0867f45d558@riseup.net> Date: Tue, 29 Jun 2021 10:25:52 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [bitcoin-dev] BIP proposal: Anti-fee-sniping protection with nSequence in taproot transactions to improve privacy for off-chain protocols 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: Tue, 29 Jun 2021 09:26:09 -0000 Good thinking. Your point also applies to CoinJoins (both equal-output and payjoin), and to any transaction where multiple parties contribute inputs. The BIP should say "at least one of the inputs of the transaction" with a suggestion that on-chain wallets just randomly pick an input. On 28/06/2021 11:55, Ben Carman via bitcoin-dev wrote: >> If nSequence is set it should apply only to the first input of the > transaction, if it has multiple inputs. > > This could have complications with DLCs and dual funded lightning. In both protocols the ordering of the inputs is not know until both parties have revealed all of their inputs, and during the reveal the nSequence is given. If we want DLCs and dual funded lightning to be compatible it would be better to have it define it as “at least one of the inputs of the transaction” instead of “it should apply only to the first input of the transaction” > > benthecarman > > > > _______________________________________________ > bitcoin-dev mailing list > bitcoin-dev@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev >