Though private keys cannot be derived from HD public keys, sharing HD public
keys still carries risk. Along with allowing an attacker to associate wallet
addresses together (breaking privacy), should an attacker gain knowledge of a
single child private key, it's possible to derive all parent HD private
keys. See crackHdPrivateNodeFromHdPublicNodeAndChildPrivateNode for
details.
To derive an HD public key from an encoded HD private key,
use deriveHdPublicKey.
Derive the HD public node of an HD private node.
Though private keys cannot be derived from HD public keys, sharing HD public keys still carries risk. Along with allowing an attacker to associate wallet addresses together (breaking privacy), should an attacker gain knowledge of a single child private key, it's possible to derive all parent HD private keys. See crackHdPrivateNodeFromHdPublicNodeAndChildPrivateNode for details.
To derive an HD public key from an encoded HD private key, use deriveHdPublicKey.