Public Keys Prefixes and Derivation Paths When importing an zpub, for example, to a wallet, does the wallet understand it should recreate a set of addresses using the derivation path &quot;m/84'/0'/0'&quot; and the script type &quot;p2wpkh&quot; ?
So if I generate an zpub with correct script type but choose an arbitrary path like  &quot;m/77'/0'/0'&quot;, would it be conceptually wrong and can cause problems when exporting to other wallets ?
I am just trying to understanding if the concept of version bytes / prefixes in extended public keys are also path-dependent or can change just according script type.
The SLIP 0132 mentions the path for some prefixes.
But the Electrum Docs don't.
It all depends on the wallet. There is no rule saying they should even accept these strings or know what they correspond to and there is no consensus among wallets.
Wallet A could accept zpub and know the desired path and script type while wallet B may accept the same zpub, ignore its version byte and use the default derivation path and a completely different script type while wallet C could simply reject the string because of &quot;unexpected&quot; starting character (z).
With that said most of the times wallets perform similarly as long as there is a BIP somewhere defining the algorithms.