BIP-84 (Native SegWit Derivation)

The derivation path convention for native SegWit addresses under m/84'/0'/0'.

Basically

BIP-84 is a shared recipe that lets your wallet make Bitcoin addresses from your recovery words. It uses m/84'/0'/0' for native SegWit (bech32), the Bitcoin address format with the lowest fees.

Key Takeaways

  • BIP-84 defines the derivation path standard for native SegWit (P2WPKH) wallets, producing bc1q addresses with roughly 38% lower transaction fees than legacy P2PKH addresses.
  • The path follows the structure m/84'/0'/0'/change/index, where purpose field 84 distinguishes it from BIP-44 (legacy), BIP-49 (wrapped SegWit) and BIP-86 (Taproot).
  • BIP-84 addresses are the current default in most HD wallets and have near-universal support across exchanges and services, making them the most practical choice for everyday Bitcoin transactions.

What Is BIP-84?

BIP-84 is a Bitcoin Improvement Proposal that tells hierarchical deterministic wallets how to derive keys for native SegWit (P2WPKH) addresses. Pavol Rusnak of SatoshiLabs published it in December 2017, extending the derivation scheme established by BIP-44 to support bech32 addresses, the bc1q format introduced by Segregated Witness.

Before BIP-84, wallets had no standardised derivation path for generating native SegWit addresses. Different wallet implementations could derive keys differently from the same seed phrase, making cross-wallet recovery unreliable. BIP-84 assigns purpose field 84 to P2WPKH accounts, so any BIP-84-compliant wallet derives identical addresses from the same seed.

BIP-84 is the third generation of Bitcoin address derivation schemes. BIP-44 (purpose 44) handles legacy P2PKH addresses starting with "1", BIP-49 (purpose 49) handles wrapped SegWit P2SH-P2WPKH addresses starting with "3", and BIP-84 (purpose 84) handles native SegWit P2WPKH addresses starting with "bc1q", while the latest addition, BIP-86 (purpose 86), covers Taproot P2TR addresses starting with "bc1p".

How It Works

BIP-84 builds on the hierarchical key derivation framework from BIP-32. A single master seed generates an entire tree of key pairs through a series of derivation steps, each identified by an index number. The full derivation path is m/84'/0'/0'/change/index.

The apostrophe (') denotes hardened derivation, which means the child key cannot be used to compute the parent key. The first three levels are all hardened, so compromising a child key cannot expose the master key or keys in other accounts.

Path Examples

BIP-84 uses concrete derivation paths for common scenarios. Each path points to a specific location in the key tree.

Each path produces a unique key pair. The public key is hashed using HASH160 (SHA-256 followed by RIPEMD-160) to produce a 20-byte witness program, which is then encoded as a bech32 address with the bc1q prefix.

Extended Key Prefixes

BIP-84 introduces distinct version bytes for serialised extended keys. These bytes differentiate BIP-84 keys from BIP-44 and BIP-49 keys.

Wallet software can use these prefixes to identify immediately the address type an extended key is intended for. A zpub key always generates bc1q addresses, whereas the older xpub format generates legacy addresses starting with "1".

P2WPKH Output Script

Addresses derived through BIP-84 produce P2WPKH (Pay-to-Witness-Public-Key-Hash) outputs. The scriptPubKey is minimal: just witness version 0 followed by the 20-byte public key hash.

Signatures and public keys live in the witness field rather than the scriptSig, so they receive the SegWit witness discount. Witness bytes count as only 0.25 weight units each instead of 1.0, directly reducing the transaction's virtual size and fee cost.

Fee Savings Compared to Other Address Types

Cost efficiency is the primary motivation behind BIP-84 adoption. P2WPKH transactions are significantly lighter because they move signature data into the discounted witness field. A standard single-input, two-output transaction illustrates the difference.

Wrapped SegWit has a slightly lower weight for single-input transactions, but P2WPKH outputs are smaller at 31 bytes versus 32 bytes for P2SH. Native SegWit is therefore more efficient overall in multi-input transactions and when receiving payments. For a deeper look at how these address types compare, see the guide to Bitcoin address types.

Why It Matters

BIP-84 benefits individual users and the wider Bitcoin ecosystem. Lower fees make transactions more affordable, especially during high-fee periods when the fee market is competitive. The standardised derivation path lets you recover your funds in any compatible wallet simply by importing your seed phrase.

BIP-84 gives wallet developers and platforms building on Bitcoin a clear specification for address generation. Spark and other Bitcoin layer-2 solutions benefit from the standardised key management because users can maintain consistent key hierarchies across on-chain and off-chain wallets. Shared standards such as BIP-84 support interoperability between self-custodial wallets, hardware signers and software wallets.

SegWit's transaction malleability fix also supports layer-2 protocols. P2WPKH transactions exclude signature data from the transaction ID hash, so third parties cannot invalidate pre-signed transactions through malleability. This property underpins the security of Lightning channels, state channels and other off-chain constructions; the guide to Bitcoin second-layer scaling explains these protocols in more detail.

Wallet Compatibility

BIP-84 native SegWit has near-universal support. As of 2026, SegWit v0 transactions, including BIP-84 P2WPKH, account for approximately 90% or more of all Bitcoin transactions.

No Backward Compatibility by Design

BIP-84 is intentionally incompatible with older wallet software that only understands BIP-44 derivation paths. If you import a seed phrase into a wallet without BIP-84 support, it will not discover your bc1q addresses or balances, which acts as a safety feature by alerting you to the lack of native SegWit support rather than silently generating incorrect addresses. Check that your recovery wallet supports BIP-84 before relying on it for backup.

Address Gap Limits

BIP-84 wallets, like all BIP-44-family derivation schemes, scan for used addresses sequentially and stop after encountering a gap of unused addresses, typically 20. If you generate addresses beyond this gap without using the intermediate ones, some wallets may fail to discover those funds during recovery. Check how your wallet handles address gap limits before using BIP-84 with advanced workflows.

Extended Key Exposure

Anyone with your zpub can derive all public keys and track every transaction in that account. A zpub does not compromise spending authority, but it creates a significant privacy risk, so treat zpub keys with the same care as other sensitive wallet data. The Bitcoin custody solutions comparison covers key security practices in more detail.

Taproot as the Next Step

BIP-86 introduces Taproot derivation paths using purpose 86. Taproot (P2TR) inputs are cheaper to spend than P2WPKH inputs and offer enhanced privacy through Schnorr signatures, but P2WPKH outputs remain smaller and Taproot adoption is still growing. For most users in 2026, BIP-84 remains the safest default because of its universal support, though BIP-86 may eventually supersede it as Taproot compatibility becomes ubiquitous.

The 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.

0

← All 1876 glossary terms