MultiversX Tracker is Live!

Nested & Native segwit python help

Bitcoin Reddit

More / Bitcoin Reddit 89 Views

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

submitted by /u/AwaitingDystopia
[link] [comments]
Get BONUS $200 for FREE!

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