Zpub (Extended Public Key)

1 min read

A zpub is a form of extended public key (xpub) which follows an additional standard defined in BIP 84. Xpubs, ypubs, and zpubs all allow a wallet to generate a deterministic tree of public keys, but each form of extended public key instructs a wallet to derive different address types. Specifically, zpubs instruct a wallet to derive native SegWit addresses, which use either P2WPKH or P2WSH scripts.

P2WPKH is the most common SegWit address type. Unlike P2SH-wrapped P2WPKH addresses, which are generated by ypubs, P2WPKH addresses are not backwards compatible.