BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

BIP 324

BIP 324, Version 2 P2P Encrypted Transport Protocol, defines an encrypted transport for communications between Bitcoin nodes. Its purpose is to make passive inspection and casual interference with node traffic more difficult without requiring Bitcoin peers to have known cryptographic identities. The maintained BIP credits Dhruv Mehta, Tim Ruffing, Jonas Schnelli and Pieter Wuille; it carries an assigned date of 8 March 2019. Maintained BIP — first-party specification

The abandoned predecessor

BIP 151, authored by Jonas Schnelli, was the earlier proposal for encrypting Bitcoin peer messages. Its BIP number was assigned in March 2016, it entered the maintained BIPs repository in May, and its design changed during review. A renewed Bitcoin Core implementation attempt, PR #14032, opened in August 2018 with an optional -netencryption setting, but never merged. BIP 151 was marked Withdrawn on 29 March 2019. The BIPs repository explicitly linked it as replaced by BIP 324 when the successor's file was added in January 2023. Original BIP 151 file · Unmerged Core implementation proposal · Withdrawal · Replacement record

The older specification and the revised 2018 proposal should not be treated as a deployed transport. One architectural difference is particularly consequential: BIP 324's ElligatorSwift handshake occurs before ordinary Bitcoin messages, making its opening bytes less easily recognizable. Both designs sought to encrypt peer communication without automatically establishing the other peer's identity, but BIP 324 did not simply ship the earlier wire format. See BIP 151 for the proposal's distinct chronology and limitations. Earlier specification · Later specification

What happened to the earlier identity proposal?

The old BIP 151 encryption scheme was paired with BIP 150, a separate draft for authenticating known peers whose identity keys had been shared out of band. BIP 150 required a BIP 151 encrypted session before exchanging signed challenges; the identity check was optional, and different from transport packet authentication. The proposal was Deferred on 17 July 2024, years after BIP 151's 2019 withdrawal. In January 2026 its status became Closed as part of a repository-wide terminology change. Neither event deployed or withdrew BIP 324. BIP 150 specification · Deferral · Status relabelling

The successor deliberately left room for optional authenticated relationships but did not define the earlier five-message BIP 150 handshake. Developers had already been discussing more private alternatives in April 2018; a 2022 developer talk later described the decision to encrypt ordinary connections without assigning global node identities. These are contemporary design discussion and later first-party explanation respectively, not evidence that the BIP 150 mechanism was secretly incorporated. Meeting record · Developer transcript

Three different networking questions

Bitcoin's older v1 transport carries recognisable Bitcoin message framing in plaintext. An observer can inspect the exchanged messages and recognise the protocol from its opening bytes. BIP 324 replaces that wire transport, when both endpoints use it, with a pseudorandom-looking encrypted stream. It aims to raise the costs of passive surveillance, on-path modification and traffic identification; it does not promise to conceal all network metadata or guarantee anonymity. Specification, motivation and goals

That is different from Bitcoin peer discovery, which asks how a node first finds other nodes, and from BIP 155, which extends the addrv2 message so established peers can advertise Tor v3 and other addresses. A node may learn a contact through addrv2, attempt a v2 transport connection, and still have to validate every block and transaction independently. Address gossip, encrypted communication and consensus verification are separate layers.

What is encrypted, and what is not

The specified handshake uses fresh secp256k1 key material and exchanges 64-byte ElligatorSwift-encoded public keys. ElligatorSwift makes it possible to encode public keys as bytes that resemble random traffic, even before an encryption key has been established. Both peers then derive the session's secrets and a session ID from the key exchange. Encrypted packets use authenticated encryption and periodic rekeying, with optional decoy packets providing a way to shape traffic. The specification also allows variable amounts of initial arbitrary-looking data. Specification, transport layer · ElligatorSwift integration PR — direct implementation record

The word authenticated needs care here. An authenticated-encryption algorithm can detect a modified packet from someone without the session key; '''that does not authenticate the remote node's identity'''. An active man-in-the-middle could establish independent sessions with each side. Out-of-band comparison of the two endpoints' session IDs can make such interference detectable for deliberately arranged connections, but BIP 324 does not itself provide an identity registry or automatic peer authentication. Motivation, session IDs and authentication rationale

Encryption also does not hide everything an observer can see. IP endpoints, connection timing, duration and traffic patterns may remain observable; v1 fallback may be induced by an active attacker. The BIP does not claim that every encrypted connection is censorship-proof or that all traffic analysis becomes impossible. These are limitations the authors discuss, not findings of a separate network-wide audit. Goals and rationale

Signaling and backwards compatibility

Peers advertise potential v2 support through the NODE_P2P_V2 service bit (1 << 11) in address relay. A listening v2-capable peer distinguishes the existing v1 message prefix from a v2 handshake, allowing both protocol versions to coexist. Outbound implementations may retry a failed v2 attempt using v1. Such compatibility keeps older nodes reachable but means that support for v2 does not prove any particular connection actually uses it. Signaling and handshake specification · Core's default-enablement PR

The v2 message representation is also a transport format, not a new set of Bitcoin consensus messages. The specification includes compact identifiers for common P2P message types and compatibility rules for their longer command encodings. Newer changes to that table belong to the maintained BIP history rather than automatically to the 2019 proposal. Application layer and changelog

Recovering the 2019 public proposal

The predecessor to the maintained BIP 324 is no longer just a date in a header. On 22 March 2019 (23 March UTC), Jonas Schnelli circulated a full draft and rationale on bitcoin-dev under the title New BIP - v2 peer-to-peer message transport protocol (former BIP151). Its proposal header still read BIP: ??? even though it carried Created: 2019-03-08. The message linked Schnelli's living draft gist and described the redesign as more than an encryption-only successor to BIP 151. This is a contemporary first-party publication of the early proposal, not the later canonical BIP file. The dated message proves the draft circulated by March; it does not authenticate every later revision of the mutable gist.

The early design already proposed NODE_P2P_V2, encrypted traffic, a pre-message handshake, short message-command identifiers, three-byte packet lengths, session IDs and a possible fallback to plaintext peers. But the wire designs differ. The March 2019 mailing-list draft describes exchanging 32-byte elliptic-curve public-key representations; the maintained BIP specifies 64-byte ElligatorSwift encodings and a later packet/handshake construction. Reusing the proposal's name and security goals does not make those two packet formats interoperable. Contemporary proposal and full specification · Maintained specification

The first code and BIP submissions also took different paths. On 2 March 2020, Schnelli opened Bitcoin Core PR #18242, a tests-only v2 transport serializer/deserializer experiment, expressly excluding the handshake and service-bit activation. It referenced the gist because the specification had not yet been submitted to the maintained BIPs repository. Its presence does not establish a released encrypted transport. Original PR description · Contemporary June 2020 review notes

On 21 October 2020, BIPs PR #1024 opened as a work-in-progress proposal, prominently marked ''don't merge*. It was closed without merging on 5 May 2022. The successful replacement PR #1378, opened 7 October 2022, explicitly says it *supersedes #1024''; it merged 4 January 2023. The first file-history commit's 7 October 2022 author timestamp and its 4 January 2023 mainline merge therefore describe different stages. Earlier public discussion, an unmerged BIP submission, a new submission, and a merged specification are all independently documentable. Earlier PR · Superseding PR and merge

The result changes the earlier open question: a March 2019 public proposal has been recovered, but the precise byte-for-byte revision history of the working gist and the full technical differences between the 2020 and 2022 proposal branches still require a pinned comparison. We should not project the maintained 2026 pseudocode backward onto Schnelli's 2019 text.

Proposal, implementation and deployment are different dates

8 March 2019
The BIP's metadata gives this as its **assigned** date and says it replaces BIP 151. This is a documentary date, not evidence that today's exact wire format had already been implemented or widely deployed. Maintained header
22 March 2019
Schnelli published an unnumbered v2 transport proposal on bitcoin-dev, with BIP: ??? in the draft header and a link to the evolving gist. The message is dated 22 March in its stated time zone (23 March UTC).
2 March 2020
A Core transport serializer experiment opened as tests-only code. It did not include the handshake and did not deploy BIP 324.
21 October 2020 – 5 May 2022
The earlier BIP proposal #1024 remained marked work-in-progress/do-not-merge and closed without merging. The 2022 successor explicitly superseded it.
7 October 2022
The earliest change for bip-0324.mediawiki in the current bitcoin/bips file history adds a detailed **Draft** bearing the earlier 2019 date. A date inside a preserved document and its Git-file addition date answer different archival questions; the Git record alone does not establish the draft's first public circulation. First preserved file-history commit
4 January 2023
The successor BIP #1378 merged to the canonical BIPs repository. Its description explicitly superseded unmerged #1024; this is the maintained specification's merge milestone, not an earlier network deployment.
26 June 2023
Bitcoin Core merged its ElligatorSwift integration, including key exchange and associated tests. This made a crucial cryptographic component available but was not yet the complete v2 transport release. Direct merged PR
September–October 2023
The specification's **28 September** commit merged a separate garbage-authentication packet into the first subsequent encrypted packet, explicitly describing the revision as a breaking change. Bitcoin Core's **3 October** merge of its integration PR made BIP 324 feature-complete behind an option that was initially disabled by default. Wire-format revision · Integration PR
6 December 2023
Bitcoin Core **26.0** released experimental v2 transport support, **off by default**, enabled with -v2transport. Its getpeerinfo RPC gained transport_protocol_type and session_id fields. The first is a direct inspection route for a connection's transport version; the second applies to a v2 session. Release announcement · First-party release notes
16 April 2024
Bitcoin Core **27.0** released with v2 transport **enabled by default**, while retaining -v2transport=0 and v1 fallback. The enabling PR had merged on **31 January 2024**; merge and public release are separate events. Release announcement · Release notes · Enabling PR
10 July 2024 – 2026
The BIP was marked **Final** in July 2024. A 2025 repository process update later changed its status label to **Deployed**. The maintained specification bears **version 1.0.2** with a changelog entry of **30 January 2026**, while subsequent August 2026 commits fix handshake pseudocode. Neither a status label nor an editorial correction by itself measures adoption by live peers. Final-status change · Status vocabulary change · Later pseudocode correction · Maintained version header

What the records establish

The BIP and its revision history are first-party specification evidence. Bitcoin Core pull requests establish implementation milestones, while dated release announcements and release notes establish software availability and defaults. None of these sources alone tells us the proportion of live Bitcoin connections actually encrypted, whether every implementation interoperated, or how much real-world surveillance BIP 324 prevented.

It would also be misleading to describe the protocol simply as Bitcoin encryption without specifying its scope. Public Bitcoin blocks and transactions remain public. BIP 324 protects the transport of messages between two peers against a particular set of threats; it does not encrypt the blockchain, change proof-of-work, authenticate unknown peers or replace independent validation.

Open research

Open question
Recover independently dated measurements of v1 and v2 connection use, with methodology and sampling limitations, rather than treating Bitcoin Core's default setting as a network-wide deployment count.
Open question
Pin the earliest verifiable revision of Schnelli's mutable 2019 gist and compare its actual bytes with the full March 2019 mailing-list draft, the unmerged 2020 BIP submission and the October 2022 superseding text. A shared title is not evidence of an unchanged wire format.
Open question
Trace v2 support outside Bitcoin Core and identify independent interoperability-test records. Core's release notes cannot establish which other implementations adopted the transport or when.

See also