ZPUB
ZPUB is the prefix for a Bitcoin extended public key that derives native SegWit addresses (bc1q...), used in HD wallets for secure key generation without private keys.
What Is ZPUB?
A ZPUB (usually written zpub) is an extended public key whose prefix says that it belongs to a native SegWit account, with addresses starting with bc1q. It holds the same kind of data as an xpub: a public key and a chain code, from which software derives addresses but no private keys.
The prefix comes from BIP84, which defines the derivation path m/84'/0'/0' for native SegWit (P2WPKH) accounts and a matching version code for the exported key. Like an xpub, the string is Base58-encoded; only the addresses derived from it use Bech32. The testnet equivalent is vpub, and ypub marks nested SegWit accounts.
The reason for the prefix is practical. An extended public key alone does not say which address type to derive, so a wallet that imports a plain xpub may show the wrong addresses and an empty balance. A zpub removes the guess.
Not all software follows the convention. Some wallets export a plain xpub together with the derivation path, or an output descriptor that states the address type explicitly. A zpub and an xpub for the same account contain the same key and can be converted into each other.
Privacy is the same as for any extended public key: whoever holds a zpub can see every address and the whole history of that account.
Real-World Examples
Example 1: Alice exports the extended public key of her native SegWit account from her hardware wallet into a watch-only app. The key starts with zpub, and the app shows her balance and bc1q receive addresses.
Example 2: A merchant gives a payment processor the zpub of a dedicated account. The processor derives a fresh bc1q address for each invoice and tracks the payments, but cannot spend them.
Example 3: Bob imports a key that starts with xpub and sees a zero balance: the app is deriving legacy addresses. After he selects native SegWit as the address type, or imports the zpub form of the key, his funds appear.
Frequently Asked Questions
Why does my watch-only app show a zero balance after I import an xpub?
An extended public key alone does not say which address type to derive, so the app may be deriving legacy addresses instead of native SegWit ones. Select native SegWit as the address type, or import the zpub form of the key, and the bc1q addresses and their funds should appear.
Can I convert a zpub into an xpub?
Yes. A zpub and an xpub for the same account contain the same key and can be converted into each other; only the prefix, which signals the address type, differs. Some wallets skip the zpub entirely and export a plain xpub with the derivation path, or an output descriptor that states the address type explicitly.
Is sharing a zpub safer than sharing an xpub?
No. Privacy is the same as for any extended public key: whoever holds a zpub can see every address and the whole history of that account. Neither can spend, but share either only with software or services that should see all of that, such as a payment processor for a dedicated account.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.