Key generation process in HD wallets