Protocols

BIP84: native SegWit (P2WPKH)

Last reviewed 1 December 2026.

Safety: Never type or paste a real recovery phrase, passphrase, or wallet backup into a website, chat, or any tool you do not fully control and trust. Address examples on this page come from published official test vectors.

BIP84 is the derivation scheme for HD wallets that use native SegWit P2WPKH accounts. On Bitcoin mainnet those addresses are Bech32 strings that typically start with bc1q. Many modern wallets default to this scheme for new Bitcoin accounts.

Like BIP49, BIP84 keeps the BIP44 account structure and changes the purpose, the address format, and the extended-key prefix.

The path

BIP84 uses:

m / 84' / coin_type' / account' / change / address_index

Purpose is 84'. The remaining levels are used as in BIP44 or BIP49. For Bitcoin mainnet, the first receiving address of the first account is m/84'/0'/0'/0/0, and the first change address is m/84'/0'/0'/1/0.

Because the purpose is different, a wallet that only scans 44' or 49' will not see a BIP84 account derived from the same seed. On restore, software has to know that native SegWit keys live under 84', or it has to try that purpose during discovery.

How the address is built

After the public key is derived, BIP84 uses the P2WPKH encapsulation from BIP141:

  • The scriptSig is empty
  • The scriptPubKey is 0 <20-byte-key-hash>

The address is encoded as Bech32, following BIP173. A mainnet P2WPKH address starts with bc1q and encodes a 20-byte program. Not every bc1 address is a BIP84 key. Taproot addresses also use a bc1 prefix, but they start with bc1p, use Bech32m, and are covered by BIP86.

Extended keys: zpub and zprv

BIP84 serializes extended keys with its own version bytes:

  • Mainnet public: 0x04b24746 (zpub)
  • Mainnet private: 0x04b2430c (zprv)
  • Testnet public: 0x045f1cf6 (vpub)
  • Testnet private: 0x045f18bc (vprv)

These prefixes are specified in BIP84 and also listed in SLIP-0132. They are not part of the original BIP32 serialization, which only defined xpub/xprv and the testnet tpub/tprv pair.

A zpub for an account node such as m/84'/0'/0' is what you would typically export for a native-SegWit watch-only wallet. Exporting the same node as an xpub can cause the receiving wallet to derive legacy addresses instead, which would not match the funds on the BIP84 chain.

Official test vector

SLIP-0132 publishes a worked example using the public BIP39 test mnemonic abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about with no passphrase. Under that vector:

  • The BIP84 account node is m/84'/0'/0'
  • The first receiving address, at m/84'/0'/0'/0/0, is:

Public test vector, never use for funds.

bc1qcr8te4kr609gcawutmrza0j4xv80jy8z306fyu

That mnemonic and address are public test data. They are not a wallet for storing funds.

How this sits next to BIP49 and BIP86

BIP84 is native P2WPKH. BIP49 is the same 20-byte key hash wrapped in P2SH, and BIP86 is a different output type entirely: a 32-byte Taproot key. All three can be derived from one seed, but they are different branches and different addresses.

If you are writing down what a wallet used, record the purpose and the address type, not only the recovery phrase. A phrase plus "it was a Bitcoin wallet" is not enough to distinguish bc1q from bc1p from a 3… nested-SegWit address.

SLIP-0132 also publishes the account extended keys for the test mnemonic above: the zpub and zprv at m/84'/0'/0' are part of that official vector, alongside the first receiving address.

Native SegWit addresses are a little shorter to check by eye than legacy addresses in some contexts, and they avoid the P2SH wrapper, but the recoverability question is the same as for any other purpose: the wallet must look under 84', respect the gap limit, and not confuse this tree with a Taproot tree that happens to share the bc1 prefix.

Why wallets introduced a new purpose

BIP84's motivation is practical compatibility. Once users have native SegWit accounts, they need a common path so that a seed restored in another BIP84-compatible wallet finds the same addresses. Giving those accounts their own purpose also means a wallet that does not support this scheme will fail to discover the accounts at all, which is safer than silently showing an empty legacy account and inviting the user to believe the funds are gone when the software simply did not look in the right branch.

Account discovery and the 20-address gap limit still work as in BIP44, applied to this tree. Generating many unused receiving addresses and then restoring in software that stops after 20 gaps can hide later funds, just as it can under BIP44 or BIP49.

FAQ

Are all bc1 addresses BIP84? No. BIP84 is native P2WPKH, usually bc1q plus a 20-byte program. Taproot uses bc1p and a different derivation standard, BIP86.

Is zpub defined by BIP32? No. BIP32 defined xpub and xprv. zpub is specified in BIP84 and registered in SLIP-0132.

If my old wallet used BIP44, will a new BIP84 wallet find those coins? Only if it also scans purpose 44' (and any other purposes you actually used). A BIP84-only scan looks under 84'.

Do I need a new recovery phrase to use native SegWit? No. The same BIP39 seed can have BIP44, BIP49, BIP84, and BIP86 accounts as separate branches. You do need a wallet that derives the BIP84 path, and you should keep a record of which address types you used.

See also

Related lesson

Sources