0

i am working on a wallet that is using BIP32 for creating Accounts, addresses, xpub, public keys, transaction and etc. but now i want to switch from BIP32 to BIP 44. how can i do this using bitcoinj i also study this, but there is nothing related to implementation. All i need to know that how can i implement BIP44 using bitcoinj and what is specific changes i have to do.Do i have to change all the hierarchy, if yes, then how can do this

1 Answer 1

0

Checkout bitcoinj master branch

Discussion https://github.com/bitcoinj/bitcoinj/pull/1341

    Wallet walletBip39 = Wallet.fromSeed(params, seed);
    System.out.println(walletBip39);

    Wallet walletBip44 = Wallet.fromSeed(params, seed, Script.ScriptType.P2PKH, ImmutableList.of(new ChildNumber(44, true), new ChildNumber(0, true), ChildNumber.ZERO_HARDENED, ChildNumber.ZERO));
    System.out.println(walletBip44);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.