BOMBARCHIVE
Explore

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

The archiveBitcoin

Old revision: BIP 324

OshiB: document BIP 324 transport history and security boundaries

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

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

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
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
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
Find and compare the pre-October 2022 proposal record with the first file preserved in the current bitcoin/bips repository. The 2019 assigned date and the 2022 Git-file introduction should not be collapsed into an invented publication event.
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