Hello, i am making a python code that displays all the info regarding a certain seed
i have everything done except getting the root and extended keys for nested and native segwit
this is the part of the code i currently have to retrieve the legacy info any idea how to convert them to nested and native, i tried the similar code on account_nested & account_native but it resulted in an incorrect keys and extended keys
root_key = BIP32Key.fromEntropy(seed)
bip39_root_key = root_key.ExtendedKey() #Legacy BIP32 Root Key
account_legacy = root_key.ChildKey(44 + 2 ** 31).ChildKey(0 + 2 ** 31).ChildKey(0 + 2 ** 31)
account_nested = root_key.ChildKey(49 + 2 ** 31).ChildKey(0 + 2 ** 31).ChildKey(0 + 2 ** 31)
account_native = root_key.ChildKey(84 + 2 ** 31).ChildKey(0 + 2 ** 31).ChildKey(0 + 2 ** 31)
# Account Extended Keys xprv & xpub
legacy_acc_ext_prv_key = account_legacy.ExtendedKey()
legacy_acc_ext_pub_key = account_legacy.ExtendedKey(private=False)
thx in advance
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments