Return-Path: Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 78CB2C0032 for ; 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 ; 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 ; 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 ; 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 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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