I tried to use the following code: DeterministicKey key = DeterministicKey.deserializeB58(null , "xpub...", MAINNET);
DeterministicHierarchy hierarchy = new DeterministicHierarchy(key); DeterministicKey chain = hierarchy.deriveChild(key.getPath(), false, false, new ChildNumber(0, false)); DeterministicKey index = hierarchy.deriveChild(chain.getPath(), false, false, new ChildNumber(0, false)); SegwitAddress segwitAddress = SegwitAddress.fromHash(MAINNET, index.getPubKeyHash()); But it doesn't return correct address. Could someone please help me to sort it out? Best regards, Jacky -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to bitcoinj+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.