bitcoinj - Change derive path




I've used bitcoinj wallet and used derive path as below.



public static final ImmutableList<ChildNumber> ACCOUNT_ZERO_PATH = ImmutableList.of(ChildNumber.ZERO_HARDENED);


But I made changes in above path for generating bip44 standard addresses.



public static final ImmutableList<ChildNumber> BIP44_ACCOUNT_ZERO_PATH =ImmutableList.of(new ChildNumber(44, true), new ChildNumber(1, true), new ChildNumber(0, true));


Now As I load wallet in application then it loads from backup and app crashes because it took old derive path and I already changed it.



So it won't find old derive path and app crashes.



How can I change derive path?



Please help.



Thanks.




Source link
bitcoinj - Change derive path bitcoinj - Change derive path Reviewed by Crypto Currency on December 27, 2019 Rating: 5

No comments:

Powered by Blogger.