Hi Andreas,
Thanks for your reply.
I’ve tried the same xpub with bitcoinjs and it works fine. I can get segwit
addresses
However, I’ll have a look at the PR later.
Cheers,
Jacky
On Fri, 18 May 2018 at 12:01 am, Andreas Schildbach
wrote:
> This is because on master the Wallet class (and K
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:
https://github.com/bitcoinj/bitc
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