Closed customusername1 closed 1 year ago
Hello,
you can either stop at the account level, without deriving the next ones, or derive the default path from the master key using the DeriveDefaultPath
method, e.g.:
# Stop at account level
print(f"Address: {bip44_mst_ctx.Purpose().Coin().Account(0).PublicKey().ToAddress()}")
# Use DeriveDefaultPath
print(f"Address: {bip44_mst_ctx.DeriveDefaultPath().PublicKey().ToAddress()}")
Regards, Emanuele
Greate, it's works. Thank you, Emanuele! You job is unbelievable!
Issues solved.
Hello! Im trying to extract address with mnemonic for STELLAR (XLM) by using example Bip44.py I've modify string with
bip44_mst_ctx = Bip44.FromSeed(seed_bytes, Bip44Coins.**STELLAR**)
Also try different Bip44Changes:
bip44_chg_ctx = bip44_acc_ctx.Change(Bip44Changes.CHAIN_EXT)
And when we generate address from that mnemonic - we get next address: (with CHAIN_INT) - GAXROIMWJHF5C6X3D7YGZJI3TR7BVQFB3B554ETALAMZW7TR4XMJWLKS (with CHAIN_EXT) - GAOSFKVGUBJB5SXOU62IA6ELWF5NMIKIUQY6SC2XTKBUVZSHJECBJ3JA
But if I use bip39 with phrase - soda gap deny remind spawn include multiply weird reunion story escape embrace I can get correct address - GBSX44RNXZ6VX4E2PSKXHYEKV7LKIZENTMZIUNV2FR6ZOOQ65ASWYYLD This address generate when you creat XLM account, for example, with TrustWallet or other.
So how can I change, maybe Derivation Path to correct m/44'/148'/0' or fix this address generation problems?