Glossary

Ypub (Extended Public Key)

1 min read

A ypub is a form of extended public key (xpub) which follows an additional standard defined in BIP 49. 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, ypubs instruct a wallet to derive P2SH-wrapped P2WPKH addresses.

P2WPKH addresses are SegWit addresses, but in order to maintain backwards compatibility, SegWit addresses can be wrapped in P2SH addresses in order to allow older wallets to send to SegWit addresses.