def f(x_pubkey): if is_extended_pubkey(x_pubkey): xpub, s = BIP32_Account.parse_xpubkey(x_pubkey) else: xpub = xpub_from_pubkey(x_pubkey.decode('hex')) s = [] node = ckd_public.deserialize(xpub) return types.HDNodePathType(node=node, address_n=s)
def f(x_pubkey): xpub, s = BIP32_Account.parse_xpubkey(x_pubkey) node = ckd_public.deserialize(xpub) return types.HDNodePathType(node=node, address_n=s)