BOMBARCHIVE
Explore

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

The archiveBitcoin

BIP 151

BIP 151, Peer-to-Peer Communication Encryption, was Jonas Schnelli's proposal for encrypting messages exchanged between Bitcoin peers. It carries an assigned date of 23 March 2016; the first surviving addition of its file to the maintained BIPs repository is dated 18 May 2016. It was withdrawn in 2019, later marked as replaced by BIP 324, and was not deployed as the Bitcoin Core peer-to-peer transport. The maintained BIP now carries the administrative status Closed. Original BIP repository addition · Withdrawal · Maintained first-party specification

The problem: public messages, private metadata

Bitcoin blocks and transactions are public, but who first relayed a transaction, when they relayed it, and to whom can reveal information that is not stored in the blockchain. The older Bitcoin peer transport used recognizable plaintext framing. The BIP's author argued that passive network observers could inspect peer messages and interfere with individual commands; the concern was particularly acute for lightweight clients using their own remote full node. BIP 151 motivation — authorial rationale

The aim was narrower than making Bitcoin activity secret. The proposal explicitly acknowledged that message sizes and timing remained open to traffic analysis. Peer encryption also would not change block validity, hide a Bitcoin node's network address from its connection partners, or transform a peer into a trusted consensus authority.

The original protocol

In the surviving BIP 151 design, each side would negotiate ephemeral elliptic-curve Diffie–Hellman key material using encinit and encack messages. Negotiation occurred in both directions; the peers would then use distinct symmetric keys for sending and receiving messages. The later maintained text derives keys through HKDF-SHA256 and encrypts with a ChaCha20-Poly1305 construction. The encrypted frame retains a protected length, ciphertext and message-authentication tag rather than the older plaintext message header and checksum. BIP 151 specification

The BIP also defined a cryptographically derived session ID, intended for a separate identity-checking mechanism, and periodic re-keying. Its surviving specification says encryption initialization must occur before ordinary messages, and that an encinit arriving after version must be ignored. This is an important detail when interpreting the significantly revised implementation proposal of 2018; an earlier BIP text and an unmerged implementation branch are not automatically identical wire specifications. Original handshake requirement and key derivation · Revised 2018 implementation proposal

What the encryption could not prove

BIP 151 did not authenticate the remote peer's identity. A man-in-the-middle able to establish separate encrypted sessions with the two endpoints could still impersonate them. The proposed companion BIP 150 addressed peer authentication using pre-shared identity keys and the BIP 151 session ID; it required an encrypted connection first. The two BIPs addressed distinct security properties, and neither created an identity registry for all Bitcoin nodes. Explicit BIP 151 risk · BIP 150 dependency and authentication design

Encryption of message contents was also not a guarantee of anonymity or censorship resistance. An observer could still see connection endpoints, timing, volumes and potentially recognizable traffic patterns. The author presented encryption as a way to raise the cost of observation and interference, not as a proof that an on-path adversary had become powerless.

Reconstructing the documentary history

March–August 2016: draft and revision

The document's metadata says 23 March 2016, but commit 62a8209 first added bip-0151.mediawiki to the current BIPs repository on 18 May 2016, in Draft status. The two dates should not be combined into a fictitious first-publication timestamp. A Bitcoin Core developer meeting summary dated 20 May says the draft was published and Schnelli would work on implementation. A 26 May meeting records Peter Todd relaying cryptographers' concerns about introducing a custom cryptographic protocol rather than an off-the-shelf standard. These are contemporary discussion records, not protocol adoption measurements. First BIPs commit · May 20 meeting summary · May 26 meeting summary

The text itself changed while developers examined it. On 13 July 2016, commit 529c7cd replaced the draft's plain HMAC-SHA512 key derivation with HKDF, altering both encryption-key and session-ID derivation. Further changes to additional-authenticated-data wording and re-keying robustness followed in July and August. Those are recorded design revisions, not network upgrades. HKDF revision · AAD revision · Re-keying revision

2018: an implementation proposal, not a release

On 28 June 2018, the Bitcoin Core meeting summary records Schnelli saying that Armory had implemented BIP 151 and might submit code to Core; Schnelli also offered to continue work on his own implementation. This is a contemporary first-person report of other software work, not an independently inspected Armory release or proof of deployed encrypted connections. The discussion also considered making handshake traffic less recognizable. Contemporary developer meeting

On 23 August 2018, Schnelli opened Bitcoin Core PR #14032. Its description calls the proposed implementation a slightly overhauled version of BIP 151, linking a separate draft. It advertised an optional -netencryption setting, off by default, and proposed negotiating with peers using NODE_ENCRYPTED; it did not require all peers to speak the new protocol. The PR also mentioned possible future integration of the NewHope key-exchange scheme, explicitly outside the submitted change. These were proposed code and plans, not shipped Bitcoin Core settings or a deployed hybrid key exchange. First-party proposal and discussion · Proposed revised specification

Contemporary secondary reporting by Bitcoin Optech described the PR and its revised draft on 28 August 2018. The original GitHub record resolves the outcome: PR #14032 was closed on 18 August 2021 without merging. A closed GitHub PR is not evidence that its functionality entered a Bitcoin Core release. Contemporary Optech report · Primary pull-request status

2019–2026: withdrawal, replacement and labels

On 29 March 2019, the BIPs repository changed BIP 151 from Draft to Withdrawn. On 4 January 2023, the commit adding BIP 324's maintained specification relabelled BIP 151 as Replaced and added the explicit successor reference. This was a source-document relationship, not the date encrypted transport first became usable. Withdrawal commit · BIP 324 addition and replacement metadata

On 12 January 2026, a BIPs process change grouped several former statuses, including Withdrawn and Replaced, under the metadata label Closed. The maintained BIP's present Closed label does not imply that the old protocol was reactivated or that its distinct history has disappeared. Status vocabulary change · Maintained status

BIP 150: identity authentication depended on this encryption

BIP 150 was Schnelli's companion proposal for proving a connection reached a known peer, with identity public keys exchanged in advance. It required an already encrypted BIP 151 session and used that session's identifier in a five-message ECDSA challenge-response exchange. That was different from merely providing encrypted packets: an unauthenticated BIP 151 connection could still be intercepted by an active peer, while BIP 150 sought to authenticate a deliberately chosen remote node. Direct specification

The two proposals did not share a single retirement date. BIP 151 was withdrawn in March 2019; BIP 150 remained Draft until Jonas Schnelli deferred it on 17 July 2024. A January 2026 repository-wide status migration then labelled both Closed. In April 2018, Bitcoin Core developers had discussed stronger privacy properties for a possible successor to BIP 150 while continuing to encourage work on the existing draft. None of those records establishes that BIP 150's wire messages shipped in Bitcoin Core. BIP 150 deferral · Contemporary meeting · Status change

The successor: BIP 324

BIP 324 retained the goal of opportunistically encrypting Bitcoin peer communication, but designed a different v2 transport. Its ElligatorSwift handshake precedes the exchange of ordinary Bitcoin application messages and produces a wire stream intended to look pseudorandom to passive observers. It also uses session IDs but, like BIP 151 without its proposed authentication companion, does '''not automatically authenticate the remote peer's identity**. This change of construction matters to protocol and censorship history; the newer protocol is not merely BIP 151 under another number. BIP 324 specification

Bitcoin Core 26.0, released 6 December 2023, made BIP 324 v2 transport optionally available, initially disabled. Bitcoin Core 27.0, released **16 April 2024''', enabled v2 transport by default while retaining compatibility with v1 connections. Neither milestone should be retrospectively credited to deployment of BIP 151. 26.0 release notes · 27.0 release notes

What survives, and what remains to establish

The direct BIPs commit history fixes the original filing, revisions and later changes of status. Developer meetings and Schnelli's PR describe contemporary intentions and implementation work. The later developer explanation of why the design was superseded is useful retrospective first-party interpretation, but does not supersede the earlier text and commits when reconstructing exactly what a 2016 draft specified. 2022 developer presentation transcript

Open question
Locate a versioned Armory build or source commit implementing the BIP 151 handshake mentioned in the June 2018 Bitcoin Core meeting, and distinguish a functioning experiment from an ordinary released feature.
Open question
Compare the separately circulated August 2018 revised handshake with the preserved 2016 BIP 151 line by line, identifying which compatibility and traffic-identification concerns motivated the eventual BIP 324 design.