Skip to main content

Extended Public Key (ypub)

wallet · hd-wallet

A wallet-specific extended public key prefix that signals a nested SegWit address type to compatible software.

1.definition

A ypub is an extended public key format used by some Bitcoin wallets to indicate P2WPKH-in-P2SH, also called nested SegWit. It is related to xpubs but changes the version bytes to communicate address type.

2.compatibility

Ypub, zpub, and similar prefixes are common but not part of original BIP32. Some tools expect a plain xpub plus an explicit derivation path and script type, so imports should be tested carefully.

Related terms

All terms and definitions may update as the Cryptionary improves.