コード例 #1
0
 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)
コード例 #2
0
 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)