Return-Path: Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id CD701C002A for ; Mon, 22 May 2023 12:51:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A290283B01 for ; Mon, 22 May 2023 12:51:39 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A290283B01 Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.a=rsa-sha256 header.s=protonmail3 header.b=RcG0c4V6 X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -0.103 X-Spam-Level: X-Spam-Status: No, score=-0.103 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, FREEMAIL_FROM=0.001, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no 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 TCkg4SRNaZSF for ; Mon, 22 May 2023 12:51:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org E328583385 Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by smtp1.osuosl.org (Postfix) with ESMTPS id E328583385 for ; Mon, 22 May 2023 12:51:37 +0000 (UTC) Date: Mon, 22 May 2023 12:51:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1684759894; x=1685019094; bh=SmdvzMx0/Jycn9JMQ/gY5vgTBsvi9XRs34GLTCAOrl8=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=RcG0c4V6FAUJaeN3IELqZEArzwut56PeGdplkWy4bOIUFeddNTJTTMo7w46WUvrup 1lXgyUlkdXMdfLT+smgzqevHyiW5pfEnl8Qx288e8sGjF4PKN7IDwSW4S3adFRGBd2 C9X73m5z1ByDJJp8Bcxe3SHbMAqzuoPjCQgsSfqWgnpWzrlWkz9guF+t+rkJSn2Hen deO5fR0lGRSBoh1oBqd8POAWGsFPA7XM21F4/QxVVcsD7WIEfF86w97hCFL6T316Cd EVpnyxc+ZK70CDg9ACnamr/QBNQUHasB97ahfV4mpmQJQ3YtEI/QfIFMO8FpOK0UHF MJ+g0Pe6yDIzg== To: Bitcoin Protocol Discussion From: alicexbt Message-ID: Feedback-ID: 40602938:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Mon, 22 May 2023 22:12:08 +0000 Subject: [bitcoin-dev] Coinjoin with less steps using ALL|ANYONECANPAY 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: Mon, 22 May 2023 12:51:39 -0000 Hi Bitcoin Developers, I recently experimented with different sighash flags, PSBTs and realized AL= L|ANYONECANPAY could be used to reduce some steps in coinjoin. Steps: - Register outputs. - One user creates a signed PSBT with 1 input, all registered outputs and A= LL|ANYONECANPAY sighash flag. Other participants keep adding their inputs t= o PSBT. - Finalize and broadcast the transaction. Proof of Concept (Aice and Bob):=C2=A0https://gitlab.com/-/snippets/2542297 Tx: https://mempool.space/testnet/tx/c6dd626591dca7e25bbd516f01b23171eb0f2b= 623471fcf8e073c87c1179c492 I plan to use this in joinstr if there are no major drawbacks and it can ev= en be implemented by other coinjoin implementations.=20 /dev/fd0 floppy disk guy Sent with Proton Mail secure email.