summaryrefslogtreecommitdiff
path: root/6d/4756cb741a623b0ae1d51e163c80a3bb3f5406
blob: 31d661f51c56d162fb8251da9ec3f571215144da (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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
Return-Path: <crypto@timruffing.de>
Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137])
 by lists.linuxfoundation.org (Postfix) with ESMTP id 78CB2C0032
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Wed, 11 Oct 2023 20:58:16 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by smtp4.osuosl.org (Postfix) with ESMTP id 5FEFD418AB
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Wed, 11 Oct 2023 20:58:16 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5FEFD418AB
Authentication-Results: smtp4.osuosl.org;
 dkim=pass (2048-bit key) header.d=timruffing.de header.i=@timruffing.de
 header.a=rsa-sha256 header.s=MBO0001 header.b=bTGF9EOK
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,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from smtp4.osuosl.org ([127.0.0.1])
 by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id jCfjnsfQbuRW
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Wed, 11 Oct 2023 20:58:14 +0000 (UTC)
X-Greylist: delayed 313 seconds by postgrey-1.37 at util1.osuosl.org;
 Wed, 11 Oct 2023 20:58:14 UTC
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 1BFD8418A6
Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172])
 by smtp4.osuosl.org (Postfix) with ESMTPS id 1BFD8418A6
 for <bitcoin-dev@lists.linuxfoundation.org>;
 Wed, 11 Oct 2023 20:58:14 +0000 (UTC)
Received: from smtp202.mailbox.org (smtp202.mailbox.org
 [IPv6:2001:67c:2050:b231:465::202])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4S5Q2Z2L6rz9stD;
 Wed, 11 Oct 2023 22:52:54 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=timruffing.de;
 s=MBO0001; t=1697057574;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=njGuGUFQG38aAzkJ5PcHGZMHhFXW2jo7rZnBFmYrm2c=;
 b=bTGF9EOKwlx8lai+fWOGi2FFBC6/jM8cNDeROx7vMCGM7uNtmuOGqCxiWmDpKNYNCFCyly
 EKQt9EfDMonm+q3fWjYn5rchB0AeAsTnPkXC4dYJtIDOwiBWujl7seuvF/6svkSWt/LmIp
 Z/UjdnD/3XiyT/AyM2pR/JpDi24eMl5y2zHPG0Tkb47cXwYs3aCqhuhxHYVdjZ3/Xpchg+
 QmVsyh6ggl7nUthVWVPe2WbCItBaip3CCUaGVAMLWifvCbB/5HFAKOdDmexQvhN4EZHaux
 9BjSzP2xO94Fg7SrLzGBJHb67yttxPUhc3+B+E0ilQecCoRj5QlrUbz2xq6Kxw==
Message-ID: <1c32b9c17a7a3ad6646994335c69155b65ac4f8f.camel@timruffing.de>
From: Tim Ruffing <crypto@timruffing.de>
To: bitcoin-dev@lists.linuxfoundation.org
Date: Wed, 11 Oct 2023 22:52:52 +0200
In-Reply-To: <56677685-619a-691f-d5bc-54b69fdb6ed2@bip324.com>
References: <56677685-619a-691f-d5bc-54b69fdb6ed2@bip324.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Rspamd-Queue-Id: 4S5Q2Z2L6rz9stD
X-Mailman-Approved-At: Wed, 11 Oct 2023 20:58:47 +0000
Cc: Dhruv M <dhruv@bip324.com>
Subject: Re: [bitcoin-dev] Refreshed BIP324
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: Wed, 11 Oct 2023 20:58:16 -0000

Hello,

We'd like to announce two recent updates to BIP324 ("Version 2 P2P
Encrypted Transport Protocol"). Some of these changes affect semantics
and some are backwards-incompatible.

While we are not aware of any implementations of BIP324 except the one
in Bitcoin Core (see https://github.com/bitcoin/bitcoin/issues/27634 ),
the purpose of the email is to inform anyone involved in other
implementation efforts. At this point, we don't expect any further
backwards-incompatible changes.

https://github.com/bitcoin/bips/pull/1496 did multiple small changes:
 * Incoming v1 connections are now detected based on first 16 bytes
   they sent (instead of 12), which improves accuracy. If the incoming
   v1 connection appears to come from a wrong network (due to non-
   matching "network magic" bytes), responders may now drop the
   connection immediately.
 * The BIP330 message types have been dropped from the short encodings
   list in the BIP. It feels like it shouldn't be BIP324's goal to
   predict future protocol improvements.

https://github.com/bitcoin/bips/pull/1498 introduced a backwards-
incompatible change:
 * The garbage authentication packet is removed by merging it with the
   version packet. This simplifies the protocol implementation by
   consolidating the states and removing the special case of "ignoring
   the ignore bit." The freedom to choose the contents of the garbage
   authentication packet has also been removed, leading to easier
   testing and implementation.

We also did some editorial improvements. The most recent revision of
the BIP324 can be found at:=C2=A0

https://github.com/bitcoin/bips/blob/master/bip-0324.mediawiki

Best,
Dhruv, Tim, and Pieter

On Sat, 2022-10-08 at 12:59 +0000, Dhruv M wrote:
> Hi all,
>=20
> We have refreshed the proposal for BIP324, a new bitcoin P2P protocol
> featuring opportunistic encryption, a mild bandwidth reduction, and
> the
> ability
> to negotiate upgrades before exchanging application messages. We'd
> like
> to invite community members to review the BIP[1] and the related
> Bitcoin
> Core
> code[2].
>=20
> The proposal has a rich history[3]. The big changes since the last
> public
> appearance[4] are:
>=20
> * Elligator-swift encoding for the pubkeys in the ECDH exchange to
> obtain a pseudorandom bytestream
> * x-only ECDH secret derivation
> * Transport versioning that allows for upgradability
> * Trafic shapability using decoy packets and a shapable handshake
> * Complete rewrite of the BIP text
>=20
> We look forward to your review and comments.
>=20
> -Dhruv, Tim and Pieter
>=20
>=20
> [1] BIP Pull Request: https://github.com/bitcoin/bips/pull/1378
>=20
> [2] All historical and current PRs:
> https://bip324.com/sections/code-review/
>=20
> [3] https://bip324.com/sections/bip-review/
>=20
> [4] https://gist.github.com/dhruv/5b1275751bc98f3b64bcafce7876b489
>=20
>=20
>=20