BOMBARCHIVE
Explore

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

The archiveBitcoin

BIP 84

BIP 84 (Derivation scheme for P2WPKH based accounts) specifies hierarchical wallet paths for native SegWit pay-to-witness-public-key-hash (P2WPKH) outputs. Pavol Rusnak's proposal is author-dated 28 December 2017 and was integrated into the canonical BIPs Git repository on 31 December. It uses a hardened 84' purpose under BIP 43, keeping the account/receiving/change arrangement familiar from BIP 44 and BIP 49, but deriving output scripts without BIP 49's P2SH wrapper. This is an application-level recovery convention, not a Bitcoin consensus rule. Initial proposal · Maintained specification

The other SegWit account

BIP 49 had proposed separate 49' accounts for SegWit outputs wrapped in P2SH, whose receiving addresses looked like traditional 3... addresses. Native SegWit outputs instead put the witness program directly in the locking script. BIP 173 supplied Bech32 addresses, commonly bc1q... for mainnet witness version zero. The distinction is about script construction and receiving-address encoding, not two unrelated kinds of Bitcoin. Segregated Witness's BIP 141 specifies the validation of both forms. BIP 141 · BIP 173

BIP 84 expressly adopted BIP 49's reason for an independent account subtree: prevent a restore that appears to succeed while overlooking outputs with a different script type. The author expected compatible software to detect the separate account and incompatible software not to find it. That is a design rationale from the BIP, not a universal prediction about every wallet's user interface or recovery scanner. Motivation and compatibility · Original rationale

Deriving a receiving address

m / 84' / coin_type' / account' / change / address_index
m / 84' / 0' / 0' / 0 / 0  (Bitcoin mainnet, first receiving key)
m / 84' / 0' / 0' / 1 / 0  (Bitcoin mainnet, first change key)

Three hardened levels isolate purpose, coin and account; the final receiving/change and index levels are non-hardened. For each derived compressed public key, a P2WPKH output takes the 20-byte HASH160 of the public key as the version-zero witness program:

scriptPubKey = OP_0 <20-byte public-key hash>
             = 0x0014{20-byte public-key hash}
scriptSig    = empty when spending
witness      =   when spending

The script has no P2SH redeem-script wrapper. A valid mainnet BIP 84 address is Bech32-encoded under BIP 173, but a bc1q prefix alone does not demonstrate that the wallet followed BIP 84. Bitcoin transactions store scripts, not their derivation paths. Other wallet software may choose the same script type using other account layouts or individual imported keys. Address derivation · Witness program rules · Bech32 specification

The maintained BIP includes public test vectors from the well-known twelve-word abandon ... about mnemonic. Its first mainnet receiving address is bc1qcr8te4kr609gcawutmrza0j4xv80jy8z306fyu, with path m/84'/0'/0'/0/0. This is a specified reproducible vector, not evidence of a historical deposit, wallet balance or first usage of native SegWit. Test vectors

The missing number behind zprv

The earliest preserved BIP 84 text already presented an extended private root with a zprv prefix in its December 2017 test vectors. On 1 January 2018, an additional source change added corresponding zpub public-key examples. But neither first draft nor that revision identified the four exact version bytes needed to produce those prefixes. As Clark Moody later documented, several different version-byte values can yield the same visible Base58 prefix. A prefix alone was therefore insufficient for an unambiguous interoperable specification. First draft · Public vectors · Contemporary registry criticism

The original 8 February 2018 SLIP 132 addressed both that ambiguity and BIP 49's then-ordinary xpub encoding. It registered versions for script-associated extended-key prefixes, including zpub/zprv. These were neither Bech32 address prefixes nor changes to BIP 32's key mathematics. A serialized extended key includes version bytes, depth, child number, parent fingerprint, chain code and key material; its visible Base58 prefix is only an encoding consequence. Original SLIP-0132 · BIP 32 serialization

PR #761, opened 14 February 2019 and merged 15 February, finally placed exact versions into BIP 84. Mainnet zpub uses 0x04b24746; zprv uses 0x04b2430c. Testnet vpub/vprv (0x045f1cf6/0x045f18bc) were added in the same February revision sequence. The new prose formalized an older prefix convention; it did not introduce native SegWit or retroactively add a version-byte specification to December 2017. Version-bytes proposal and merge · Public/private byte versions · Testnet addition

This chronology is importantly different from BIP 49, whose initial test vectors used ordinary tprv strings and whose ypub/yprv section was merged only in July 2019. Both BIPs eventually adopted explicit version signaling; their first drafts did not say the same thing. BIP 49 earlier vectors · BIP 49 later change

What the prefix still cannot remember

A zpub can help a compatible program associate its extended key with a P2WPKH script family. It does not prove the key's origin path, identify every account or change branch, record a wallet's look-ahead/gap policy, or identify an individual owner. Merely rewriting a zpub to xpub without retaining its script context can cause software to derive a different set of watched addresses from the same key material. BIP 380's later output-script-descriptor proposal explicitly criticized assigning script-type meaning to extended-key version bytes as a layer violation. Descriptors instead combine script expressions and key-origin paths, addressing a more general backup/export problem than a prefix alone. Descriptor motivation · Extended keys

Document status and evidence

The original 2017 BIP was Draft. It was marked Final on 10 April 2023, reclassified with BIPs 43 and 49 on 18 March 2024, and received the Deployed label through the process migration published in January 2026. None of these metadata changes establishes when wallets adopted 84', when their first transactions confirmed, or how many users restored a compatible backup. 2023 status · 2024 type · 2026 migration

Ordinals and Bitmap are downstream interpretation layers. Discovering a BIP 84 output does not by itself recover an inscription history or prove a Bitmap claim. In practice, a wallet/indexer must also track whether an output has been spent and how relevant sats and inscriptions have moved. This is an architectural consequence of the layered standards, not a claim that the 2017 author anticipated either application.

Open question
Locate version-pinned native-SegWit wallet releases implementing BIP 84 before and after the 2019 explicit zpub/zprv version-byte addition.
Open question
Reproduce the published BIP 84 address vector independently from BIP 39 entropy and BIP 32 child derivation, recording the exact bytes rather than trusting an explorer display.

From the archivist's desk

The oddity here is not that a wallet needs a path. It is that the original proposal already displayed zprv while leaving the bytes that gave that prefix its meaning unstated. A human-recognizable sign can be useful and still underspecify the machine language beneath it. The later descriptor work asks a more satisfying question: why should a key's textual wrapper have to explain the script it is meant to produce?

See also