BIP-47 (Reusable Payment Codes)
Payment codes that give a reusable identifier while still producing a fresh address for every payer.
Basically
BIP-47 gives you one reusable payment code. Your wallet uses it to create a new Bitcoin address for each payment, so you can share the code without reusing addresses.
Key Takeaways
- BIP-47 lets you share one static payment code while senders generate a unique Bitcoin address for every transaction. This prevents address reuse without requiring interactive address exchange.
- A one-time on-chain notification transaction uses elliptic curve Diffie-Hellman (ECDH) to establish a shared secret between sender and receiver. Both parties can then derive fresh addresses for unlimited payments.
- Silent Payments (BIP-352) remove the notification transaction, while BOLT-12 offers serve a similar role on the Lightning Network. These newer alternatives make BIP-47 largely a legacy approach.
What Is BIP-47?
BIP-47, formally titled "Reusable Payment Codes for Hierarchical Deterministic Wallets," is a Bitcoin protocol proposed by Justus Ranvier in April 2015. It creates a payment code that you can advertise publicly and link to a real-world identity without exposing individual transactions. Each payment code is an 80-byte structure encoded in Base58Check with the prefix "PM8T" and looks like a long Bitcoin address.
BIP-47 addresses the privacy problem created by publishing one Bitcoin address on your website or social profile. On-chain observers can link every incoming payment to you and estimate your total balance when senders reuse that address. BIP-47 gives you a static identifier to share freely while every sender derives a unique address for each payment, preserving privacy on the public blockchain.
BIP-47 builds on the hierarchical deterministic (HD) wallets defined in BIP-32. It uses the dedicated derivation path m/47'/0'/account' to generate keys for the payment code scheme. Both sender and receiver can deterministically regenerate all shared addresses from their seed phrases, so funds remain recoverable after a full wallet restore.
How It Works
BIP-47 uses a two-phase process. A one-time notification transaction establishes a communication channel, followed by an unlimited sequence of private payments.
Phase 1: Notification Transaction
Alice must send a notification transaction before she can pay Bob using his payment code. This on-chain Bitcoin transaction tells Bob's wallet to start watching for payments from Alice:
Bob's wallet monitors his notification address and detects the incoming transaction. It extracts Alice's public key from the input, computes the same shared secret (S = b * A), derives the identical blinding factor, and decrypts Alice's payment code. The ECDH property guarantees that both parties arrive at the same shared secret from their respective private keys.
Phase 2: Deriving Payment Addresses
Notification allows Alice to generate unique addresses for Bob without further interaction. She can then derive each payment address:
Bob independently derives the same addresses using his own private keys. No on-chain observer can link these payment addresses to Bob's payment code because the derivation depends on the shared secret, which only Alice and Bob can compute.
Payment Code Structure
A BIP-47 payment code uses an 80-byte binary structure. The structure contains the following data:
PayNym: The User-Facing Implementation
PayNym is the branded user experience built on BIP-47 payment codes and was originally created by Samourai Wallet. Raw payment codes are long and unwieldy, so PayNym assigns each one a human-readable identifier such as "+shrillsurf491". It also generates a unique robot avatar from the code itself.
BIP-47 payment codes have been implemented by several wallets. These wallets include:
Samourai Wallet operated the original PayNym directory at paynym.is until U.S. federal authorities seized the Samourai domain and servers in April 2024. The founders were arrested, later pled guilty to conspiracy charges related to operating an unlicensed money transmitting business, and were sentenced in late 2025. The shutdown disrupted the centralized lookup service used by many BIP-47 wallets and exposed a tension in the protocol: a privacy-focused standard depended on centralized infrastructure.
Use Cases
BIP-47 is most useful when you need a persistent, public-facing payment identifier without sacrificing transaction privacy. Common scenarios include:
BIP-47 vs. Silent Payments and BOLT-12
BIP-47 was a pioneering approach to reusable payment identifiers, but newer protocols address its key shortcomings. Their trade-offs show where each protocol fits.
Silent Payments (BIP-352)
Silent Payments, proposed by Josie Baker and Ruben Somsen, eliminate the notification transaction entirely. The sender derives a unique Taproot address directly from the recipient's public key and the sender's input keys. The resulting on-chain outputs look like ordinary Taproot transactions, with no OP_RETURN, dust output or linkable notification address.
Silent Payments were merged into Bitcoin Core 28.0 and are seen as the successor approach for on-chain payment privacy. The research on Silent Payments and Bitcoin privacy provides a deeper comparison.
BOLT-12 Offers
BOLT-12 offers serve a similar conceptual role on the Lightning Network by providing a static, reusable identifier for receiving payments. BOLT-12 uses blinded paths and onion messages instead of on-chain notification transactions to negotiate invoices without revealing the recipient's node identity, leaving no on-chain footprint. BOLT-12 operates on Layer 2 and requires Lightning Network connectivity, so it complements rather than directly replaces on-chain approaches; the BOLT-12 offers deep dive provides more detail.
Notification Transaction Costs
Every new sender-recipient pair requires an on-chain notification transaction before any payment can occur. Your first payment to a new recipient effectively costs two transactions' worth of fees plus a 546-satoshi dust output, making BIP-47 significantly more expensive than a fresh address for one-time payments. The notification also permanently adds an 80-byte OP_RETURN output to the blockchain.
Privacy Limitations of the Notification Address
All senders transmit their notifications to the same notification address derived from the recipient's payment code. An observer who identifies this address can see that multiple parties have established BIP-47 channels with the same recipient, even though individual payment addresses remain unlinkable. The BIP specification itself warns that "incautious handling of change outputs from notification transactions may cause unintended loss of privacy."
Developer Community Reception
BIP-47 received a "Unanimously Discourage for implementation" assessment in the BIP wiki comments system, with prominent Bitcoin developers citing design concerns. Core criticisms included the notification transaction overhead, the notification address linkage issue, and reliance on centralized third-party servers for payment code lookups in practical implementations, which undermined the protocol's privacy goals.
Ecosystem Fragility
The Samourai Wallet shutdown in 2024 demonstrated a practical risk: the PayNym directory used by wallets to resolve human-readable identifiers was a single point of failure. The BIP-47 protocol itself is decentralized because notification transactions are on-chain, but the user-facing ecosystem around it was not. Community forks such as Ashigaru have built replacement infrastructure, but the episode shows why self-custodial and decentralized designs matter at every layer of the stack.
Version Fragmentation
BIP-47 defines versions 1 and 2, while a separate RFC, OBPP-05, specifies versions 3 and 4 with improvements such as reduced payload size and SegWit address support. Only version 1 has seen real-world wallet adoption. The protocol's theoretical improvements therefore remain undeployed in practice, including the elimination of the reused notification address in v2's bloom-multisig approach.
Why It Matters
BIP-47 was one of the first serious attempts to resolve the tension between usability and privacy in Bitcoin payments. The idea that you could share a single, static code and receive payments to unique addresses was groundbreaking in 2015. Its implementation involved trade-offs that newer protocols have since improved upon.
BIP-47 provides useful context for builders working on Bitcoin payment infrastructure today. The problems it identified, including address reuse, interactive address exchange and identity linkage, remain central challenges. Silent Payments and BOLT-12 iterate on BIP-47's vision with fewer trade-offs, while modern address formats and Layer 2 protocols such as Spark continue to advance Bitcoin privacy and usability.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.