BOMBARCHIVE
Explore

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

The archiveBitcoin

BIP 47

BIP 47, Reusable Payment Codes for Hierarchical Deterministic Wallets, is Justus Ranvier's 2015 proposal for publishing a long-lived Bitcoin receiving identifier without reusing one on-chain payment address. It combines hierarchical deterministic keys, elliptic-curve shared secrets, and a one-time notification from a sender to a recipient. Subsequent payments use fresh P2PKH deposit addresses. The original proposal was assigned 24 April 2015; its first recovered canonical Git file was added 19 June 2015. The maintained BIP is marked Deployed as of November 2026. That status does not mean every Bitcoin wallet supports it or that later designs have adopted the same notification rules. Canonical specification — primary · Original canonical file — direct Git record

Why the notification exists

A published static Bitcoin address allows repeat payments, but reuse makes those outputs trivially linkable. Giving every payer the same extended public key likewise exposes more derivation structure than a one-to-one exchange ought to. BIP 47's answer was an identity subtree, at m / 47' / coin_type' / identity', associated by recommendation with the same-index BIP 44 account. A Base58Check payment code begins with P, using the serialization prefix 0x47; the code's 80-byte binary payload holds version, feature flags, a compressed public key, a chain code and reserved bytes. The fixed code is public; derived payment destinations change. Paths and representation — primary

The relationship has an introduction phase. To make the first payment to Bob, Alice supplies a notification transaction containing a blinded copy of her payment code. In version 1, she sends a small output to Bob's derived notification address and adds an 80-byte OP_RETURN payload. Both parties calculate an elliptic-curve Diffie–Hellman point using Alice's designated input key and Bob's notification key, then use the designated input's spent outpoint to blind or unblind the payment-code contents. Having recovered Alice's code, Bob can derive and monitor the same sequence of deposit addresses Alice generates. Version 1 notification and sending

Normal deposit payments use shared secrets to tweak Bob's derived public keys; they do not send Bitcoin to the payment code itself. Each sender-recipient relationship has its own next-unused address index. The BIP requires Bob to notify Alice separately before paying her back, even after receiving Alice's original introduction. A refund is not automatically a reciprocal communication channel. Sending and refunds

Two notification versions, not two interchangeable addresses

Version 1 watches a conventional notification address. Version 2, added to the document on 19 April 2016, replaces that particular output with a multisignature-shaped change output containing the recipient's 33-byte payment-code identifier, allowing a bloom-filtering client to discover the notification. The specification recommends version 2 for wallets with that capability. Both versions retain the blinded payment-code payload and the underlying one-time introduction: version 2 is not a notification-free silent payment. It continues to specify P2PKH deposit addresses. Version 2 introduction — direct revision · Version matrix

This design predates the later Silent Payments and differs from Private Payments, which proposed a smaller, tagged notification and explicit address-type choices. BIP 351's own specification says its codes are not backward-compatible with BIP 47. The three designs share an ambition to separate public payment identifiers from individual outputs; they do not form interchangeable protocol versions. BIP 351 compatibility · BIP 352 motivation

The implementation became part of the specification

The first recovered Git submission on 19 June 2015 described a 65-byte notification payload. The document subsequently settled on 80 bytes. A 22 June 2015 change made the binary serialization explicitly 80 bytes and changed the Base58Check prefix to 0x23; on 21 September 2015 that prefix changed again to 0x47 because 0x23 did not produce the desired leading P once the checksum was included. These are directly recorded format corrections, not evidence of three separate production standards. First file · June serialization correction · September version-byte correction

More consequentially, the original Samourai Wallet implementation reversed the two inputs of the HMAC-SHA512 calculation used to blind notification transactions, according to a later commit by Ranvier. Rather than declaring deployed wallets wrong, the specification was adjusted to describe the behavior of the released implementation and its test vectors. The change is labeled 28 September 2017 in the BIP's changelog and author timestamp. Its Git committer timestamp is 15 February 2021, and the finalization pull request containing this history merged into the canonical repository on 24 April 2024. Those three dates describe different records, not interchangeable publication events. HMAC edit and explicit implementation rationale — direct commit · Finalization PR and merge · Samourai test vectors — contemporary implementer record

An inconsistency remains in the maintained text. Alice's version-1 notification procedure now writes HMAC-SHA512(o, x), while Bob's decoding procedure still writes HMAC-SHA512(x, o), although both are meant to calculate the same blinding factor. The specific Git patch changed only Alice's line. Read with the conventional HMAC notation (key first, message second), the two calls are different. The archive has now checked their outputs against the original implementer's published notification vector; this demonstrates a specification-versus-vector discrepancy on Bob's line, not a verified defect in a released receiver wallet. Maintained sender and receiver algorithms — primary · One-line correction — direct Git record · Samourai vector — first-party implementer record

Checking the blinding-mask test vector

The SamouraiDev test vector supplies the 32-byte ECDH secret-point x-coordinate x, the 36-byte serialized designated-input outpoint o, and the expected 64-byte notification blinding mask. Using those published intermediate values, the two candidate HMAC calls can be reproduced without private keys, network access or any wallet software:

import hashlib, hmac
x = bytes.fromhex("736a25d9250238ad64ed5da03450c6a3f4f8f4dcdf0b58d1ed69029d76ead48d")
o = bytes.fromhex("86f411ab1c8e70ae8a0795ab7a6757aea6e4d5ae1826fc7b8f00c597d500609c01000000")
print(hmac.new(o, x, hashlib.sha512).hexdigest())  # HMAC-SHA512(o, x)
print(hmac.new(x, o, hashlib.sha512).hexdigest())  # HMAC-SHA512(x, o)

The first digest starts be6e7a4256cac6f4 and matches the entire 64-byte blinding mask published in the vector, byte for byte. Reversing key and message starts 793bb1ccc3eeb8c7 and does not match. This independent recalculation confirms that the vector uses o as HMAC key and x as message. It supports the revised Alice instruction, while the unchanged Bob instruction would generate another mask if implemented literally. Published notification outpoint, secret and mask — first-party vector · Sender-side correction

Cross-checking the surviving 2016 helper code

The discrepancy is narrower than the written specification alone suggests. SamouraiDev's publicly retained BIP47_RPC repository contains Java classes described by its author as being used in Samourai Wallet. In its 30 March 2016 initial commit, PaymentCode.getMask(sPoint, oPoint) explicitly initializes the HMAC-SHA512 key with oPoint and passes sPoint as the message. The Util.getIncomingMask method derives a shared point from Bob's notification private key and Alice's public key, then calls that very same getMask helper with the notification outpoint. This is direct first-party source-code evidence that a published receiver-side routine already followed the order confirmed by the vector, before the BIP's later sender-side correction. 30 March 2016 mask implementation · Receiver-side caller · SamouraiDev source repository

Limits: the independent numerical reproduction begins with the vector's stated ECDH result; it does not derive that point or reconstruct the whole notification transaction. The 2016 helper shows the intended code path, but has no tagged releases in that repository; it does not prove which version of a distributed Android wallet included it. The maintainers' BIP 47 receiver instruction remains textually inconsistent with both their published vector and the surviving helper code. That is an identifiable documentation inconsistency, not evidence of failed wallet interoperability.

A public identity has recovery costs

The BIP says normal use can work in a simplified-payment-verification wallet, but seed-only restoration requires recovering all previous notifications, including spent notification transactions, and then rebuilding address lookahead for every detected sender. It also requires wallet metadata for outgoing notifications and index progress. A restored wallet may need to repeat outgoing notifications. Ephemeral payment codes create still harder discovery problems, and unsynchronized copies of one wallet can accidentally reuse addresses. These are constraints stated in the specification, not hypothetical objections added years later. Wallet Recovery and Wallet Sharing

Privacy is not a simple yes/no label here. The notification transaction is on-chain and the recipient can recognize its sender. The BIP warns against inputs easily linked to the sender's notification identity and recommends careful handling of notification-change outputs. Monitoring a public notification address or recognizing the version-2 script can reveal relevant patterns; none of that by itself establishes the real-world identities of transaction participants. Avoiding reuse of deposit addresses is not the same as eliminating linkage or recovery tradeoffs. Notification and privacy considerations

Timeline of the record

24 April–19 June 2015
Assigned date in the BIP, followed by its first recovered canonical Git addition. The original text still needed format corrections. First file
22 June–21 September 2015
Payload length and Base58Check prefixes corrected; the ultimate prefix was 0x47, which produces the intended human-readable P. June change · September change
4 December 2015–19 April 2016
Samourai test vectors joined the record; version 2's bloom-filter-oriented notification procedure was added. Test-vector link · Version 2
2017 / 2021 / 2024
HMAC-order correction carries a 2017 author date, a February 2021 committer date, and belongs to a finalization PR merged April 2024. The diff explicitly cites existing Samourai implementation behavior. Commit · PR
12 April 2025–23 July 2026
Repository-wide status and document-metadata changes relabeled the BIP *Deployed* and later *Specification*. These administrative edits do not independently verify present-day wallet adoption. Status transition · Type transition

What remains to investigate

  • Trace the published BIP47_RPC helper into signed/tagged Samourai Android releases and their tests. Its 2016 receiver routine uses outpoint-as-key, matching the vector, but the helper repository alone does not establish which released builds contained it or how all clients behaved.
  • Reconstruct specific tagged wallet releases and their supported BIP 47 version, address type and recovery behavior, rather than treating the historical Samourai implementation or the BIP status as a current compatibility census.
  • Recover the original 2015 mailing-list context and archived BIP review comments without treating a single quoted review as Bitcoin-wide consensus.
  • Determine whether other wallets' payment-code adaptations, including SegWit extensions, were compatible with the version-1/version-2 definitions or separate conventions.

Sources and evidence boundaries

The maintained BIP 47 establishes the currently written protocol. Git file history, especially the HMAC correction, documents changing text and its stated cause. PR #1068 supplies the canonical merge event. Test vectors are first-party implementation artifacts, not an independent audit of all wallets. The Samourai notification vector independently reproduces the expected blinding mask with o as HMAC key, and the author's 2016 BIP47_RPC receiver helper uses that same order. The remaining uncertainty concerns particular wallet release binaries and interoperability, not which order those two first-party artifacts encode. BIP 351 and BIP 352 document later approaches to the reusable-identifier problem.