Thanks for your reply.
I’ve tried the same xpub with bitcoinjs and it works fine. I can get segwit
However, I’ll have a look at the PR later.
On Fri, 18 May 2018 at 12:01 am, Andreas Schildbach <andr...@schildbach.de>
> This is because on master the Wallet class (and KeyChains) still doesn't
> derive SegWit addresses. Also, I think xpub's would always derive to
> legacy addresses. Zpub's would be needed for native segwit addresses.
> There is a PR about deriving native segwit addresses:
> I'm looking for feedback on the PR.
> On 05/17/2018 06:48 AM, Jacky Li wrote:
> > If I use:
> > DeterministicKey key = DeterministicKey.deserializeB58("MY XPUB
> > KEY",params);
> > Wallet wallet = Wallet.fromWatchingKey(params,key);
> > wallet.currentReceiveAddress()
> > It only returns legacy address instead of segwit address...
> 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.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.