helper functions for bip32 derivations