BlueWallet icon indicating copy to clipboard operation
BlueWallet copied to clipboard

Bluewallet imports SegWit watch-only wallet as legacy

Open seedhammer opened this issue 3 years ago • 4 comments

I'm scanning this watch-only xpub with derivation path and master fingerprint. Bluewallet seems to accept the 84' path but then proceeds to generate legacy addresses (1...) contrary to the specification that 84 is used for native segwit addresses (bc1...)

QR: QR

[dafedf1c/84h/0h/0h]xpub6DFMZMLizqqnyyHoWTG7qzmCR1irpiDEGT4JQX7ubeoFtV838ABKPfgAPQbM1TEekEyCuJF1BrmnA7JPrnzqi2VbycD3tVE3v5xsDQqYA3A

How to reproduce:

  1. Open BlueWallet -> Add Wallet (Add now) -> Import wallet -> Scan or import file -> Scan the QR
  2. Open the freshly imported watch only wallet -> Tap "..." in upper right corner -> Show addresses
  3. A series of legacy addresses are shown (1...)

seedhammer avatar Aug 30 '22 09:08 seedhammer

FYI @Overtorment: the QR from SeedSigner - where h is replaced with ' (84'/0'/0') and xpub is replaced with zpub - works as expected.

seedhammer avatar Aug 31 '22 08:08 seedhammer

@seedhammer can you explain in detail how you formatted the zpub to get it working? I'm having the same issue but in my case I'm just importing the xpub without the preceding master fingerprint or derivation path.

hugoender avatar Sep 02 '22 15:09 hugoender

Disregard my previous comment. I just used the zpub address and it worked.

hugoender avatar Sep 02 '22 15:09 hugoender

What is scheduled deploy of fix to this issue?

seedhammer avatar Oct 11 '22 06:10 seedhammer

prepared a fix.

@seedhammer can you pls confirm, that for the given example zpub would be zpub6rutAggZJCvkgZg3BAqNGAxCkx1khxCE6g6jyJugMfZ1zgkVdUWSdnzSRpWX1GYVZXCpQFS87BUsvgXXJBpsJVroiHbu4Js2TY69zbWcTNb and first address on the hierarchy would be bc1q68y6r45k4kvxe42xl37dgjueg2suqwnh4ze0sr..? (added it in a testcase)

Overtorment avatar Oct 23 '22 19:10 Overtorment

Thank you very much, @Overtorment! I can confirm your zpub and first address matches our example xpub.

seedhammer avatar Nov 01 '22 23:11 seedhammer