bip 32 hd wallets – 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 “m/84’/0’/0′” and the script type “p2wpkh” ?

So if I generate an zpub with correct script type but choose an arbitrary path like “m/77’/0’/0′”, 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.