summaryrefslogtreecommitdiff
path: root/9b/f0645da5b13078f06f1c1f7118c26c055d7688
blob: b5994efbfdae06ce984f22d7021c9d56fa11382d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Return-Path: <alicexbt@protonmail.com>
Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138])
 by lists.linuxfoundation.org (Postfix) with ESMTP id CD701C002A
 for <bitcoin-dev@lists.linuxfoundation.org>;
 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 <bitcoin-dev@lists.linuxfoundation.org>;
 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 <bitcoin-dev@lists.linuxfoundation.org>;
 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 <bitcoin-dev@lists.linuxfoundation.org>;
 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 <bitcoin-dev@lists.linuxfoundation.org>
From: alicexbt <alicexbt@protonmail.com>
Message-ID: <EWAXAmgFlZ8XQJOYO8VTH7Zj0tTAftwy-ylaGvf3Giealz1FFb97CbcxjP0q-Zu85XoAzOG0ivdYIKa_kG77ooHqBvCP7YOZOkb6yHmX75s=@protonmail.com>
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 <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>, 
 <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>, 
 <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=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.