Post
Topic
Board Development & Technical Discussion
Merits 1 from 1 user
Re: Zpub safety
by
o_e_l_e_o
on 28/05/2023, 07:59:00 UTC
⭐ Merited by NotATether (1)
zpubs or Zpubs are bad ideas. They should not have been created. And there are plenty of misunderstandings out there.
Since zpubs or Zpubs are already for P2WPKH or P2WSH, then what's the alphabets for taproot?
People should always use xpub and descriptor.
I do agree it would have been easier to just stick to xpubs and then specify derivation path/script type/etc separately in order to generate the correct type of addresses, which is exactly what Core is doing with descriptors. It would avoid scenarios like this one where you have to convert Zprvs from Electrum to xprvs in order to import them in to Core.

As specified in BIP86, Taproot should use xprvs/xpubs, but there is nothing stopping software using zprvs/zpubs for Taproot. Although given that Taproot addresses can be key path or script path, then the whole Z/z separation for script hash/pubkey hash falls apart.