BIP 49 (Derivation scheme for P2WPKH-nested-in-P2SH based accounts) specifies where a BIP 32 wallet derives keys intended for P2SH-wrapped SegWit outputs. Daniel Weigl's proposal carries an assigned date of 19 May 2016; the directly inspectable BIPs-repository pull request was merged on 5 October 2016. It reused the account layout of BIP 44, but placed the keys under hardened purpose 49' rather than 44'. Its reason was wallet recovery, not a new Bitcoin consensus rule. Original proposal and merge · Maintained BIP 49
Why another purpose?
Segregated Witness offered a new way to spend an output. BIP 141 allowed a version-zero pay-to-witness-public-key-hash (P2WPKH) program to be wrapped inside an existing P2SH output. Its receiving address could therefore use the familiar mainnet Base58Check 3... form even when the payer's software knew only P2SH. The eventual witness-aware spender supplies both the redeem script and witness stack. The wrapper provided a payment compatibility route; it did not make an old node enforce SegWit's signature rules. BIP 141 witness-program specification · BIP 16 P2SH
Weigl considered adding new script types to existing BIP 44 accounts. That could create a particularly confusing restore: a wallet that understood only the original script type might display an apparently valid account while overlooking some of its outputs. His alternative was a separate hardened purpose subtree. Software recognizing BIP 49 could discover that subtree and its wrapped-witness scripts; software that did not recognize it would normally fail to discover that account instead of silently showing a partial BIP 49 balance. This was the author's proposed failure mode, '''not a guarantee about every wallet's recovery interface'''. BIP 49 motivation and considerations
Path, key and output are different things
m / 49' / coin_type' / account' / change / address_index m / 49' / 0' / 0' / 0 / 0 (Bitcoin mainnet; first receiving key) m / 49' / 1' / 0' / 0 / 0 (Bitcoin testnet; first receiving key)
The first three levels are hardened; the last two select receiving (0) or change (1) and an address index. BIP 49 adopts BIP 44's account structure and discovery assumptions. The output type is an additional instruction about how to use a derived key, not an attribute of its secret scalar. The same seed can generate different addresses under BIP 44, BIP 49 and BIP 84, even where every derived key is mathematically valid. Specification · Parent layout
For the derived compressed public key, the nested P2WPKH redeem script is a version-zero witness program (0x0014 followed by the 20-byte HASH160 of the key). The P2SH output locks to the HASH160 of that redeem script, not directly to the key hash:
redeemScript = OP_0 <20-byte public-key hash> scriptPubKey = OP_HASH160OP_EQUAL spending scriptSig = spending witness =
The on-chain output does not disclose the BIP 49 path. A matching 3... address alone also cannot prove BIP 49 was used, because P2SH has other possible redeem scripts. The derivation path is wallet-side knowledge. Address derivation · Nested-witness spend rules
The proposal's unfinished first test vectors
The original 5 October 2016 pull-request description explicitly said the test vectors were not finished while the proposal awaited a BIP number. Its first preserved assigned-number text still included placeholders, not executable final vectors. Later that same day, commit 7662d712 calculated examples. A 16 October correction (61e766b9) changed the testnet path and recalculated its keys and output: the earlier example had used 49'/0', Bitcoin's mainnet coin type, despite claiming to be a testnet example. The corrected example uses 49'/1'/0'. This is a published test-vector correction, not evidence of a consensus change or of lost funds in a real wallet. Original pull request · Completed vectors · Corrected testnet coin type
SegWit itself became active on mainnet at block 481,824 on 24 August 2017. A wallet-layout proposal and actual network activation are distinct milestones. Neither the 2016 BIP file nor activation proves that any particular wallet version implemented this derivation scheme. SegWit · Activation-height implementation
The delayed appearance of ypub
The earliest BIP 49 examples serialized extended keys with conventional tprv testnet prefixes. They did not initially mandate the now-familiar ypub/yprv versions. On 8 February 2018, Clark Moody's original SLIP 132 explicitly complained that BIP 49's original use of xpub-style serialization left the script type ambiguous. The registry proposed dedicated version bytes as a practical signaling convention. That is contemporary first-party standards criticism, not a measurement of wallet failures. Original SLIP-0132 record
PR #762 opened on 14 February 2019 and merged on 26 July 2019. It added the Extended Key Version section and switched BIP 49's test vectors to the corresponding extended-key prefixes. Mainnet ypub/yprv use version bytes 0x049d7cb2/0x049d7878; testnet upub/uprv use 0x044a5262/0x044a4e28. An earlier author-dated February commit and the July merge are not interchangeable publication dates. Version-byte change request · Merged change
These prefixes label an extended-key serialization, not the addresses generated from its descendants. Changing the version field changes the Base58 text and checksum, not the underlying private/public key or its chain code. It can communicate a script-type convention to software that recognizes it, but cannot by itself supply a complete wallet configuration or authenticate that a recipient controls an address. The later BIP 380 descriptor proposal criticized script-type meaning encoded into extended-key versions as a layer violation and specified explicit key-origin paths and script expressions instead. Extended-key serialization · Output script descriptors, motivation
Status and evidence limits
BIP 49 was initially Draft. The author-proposed change to Final was merged on 25 July 2019, a day before the version-byte PR was merged. It was subsequently reclassified among standards-track account-layout BIPs in March 2024. A process-wide migration published in January 2026 labels it Deployed. These are document-maintenance events, not the dates on which P2SH, SegWit or all compatible wallets switched on. 2019 status change · 2024 type change · Process migration
For Ordinals or Bitmap, recovering a BIP 49 key only finds a Bitcoin output if the restoring wallet also searches the appropriate scripts. The sat/inscription history and a Bitmap application's claim rules require separate indexing. That connection follows from the protocol layers; it is not an intention asserted by the 2016 author.
Identify version-pinned wallet releases that first adopted the BIP 49 purpose path, then separately those that adopted ypub/yprv version-byte signaling.
Find an authenticated real-world recovery failure involving a BIP 49 output and a wallet scanning only BIP 44, distinguishing reproducible behavior from user recollection.
From the archivist's desk
The revealing part of BIP 49 is that it tried to make a failure visible. SegWit could make an output cheaper to spend, but the next wallet still needed to know where to find it. The output exists whether the restoring software looks there or not. The later ypub convention was another attempt to attach a signpost to a key whose bytes otherwise could not explain their intended use.