Closed eugenesan closed 2 years ago
The ypub/zpub formats are deprecated (for example, there is no equivalent for Taproot). You can use them in Sparrow, but Sparrow displays xpubs by default.
Are any of the fields failing validation (red outline)? Have you entered the master fingerprint (can use 00000000
) and the derivation path?
My understanding was that zpub being part of BIP84 was the current standard so I was expecting zpub to be the default. Also, iancoleman's bip39 and electrum use/export zpub by default.
Thanks for your suggestion, I found my problem. Here are my findings:
Unrelated to the issue, current font used to display addresses makes it hard to differentiate number "one" and lowercase "L".
Zpubs are specified in SLIP39, not BIP84. Output descriptors have now replaced this outmoded method of specifing script type. See https://bitcoin.stackexchange.com/questions/89261/why-does-importmulti-not-support-zpub-and-ypub
The "swap" button generates incorrect keys.
It simply changes the header on the extended public key. Please provide evidence to support your assertion.
Thanks for the link, looks like I was mislead by some random article on subject.
Regarding the "swap" button. Here is my test:
I am confused with the results of the test, especially 8. Are there several xpub/zpub formatting schemes or I am doing something wrong?
You are missing an important factor - the derivation path. The extended keys generated in steps 2 & 3 are generated on different paths, namely m/44’/0’/0’ and m/84’/0’/0’. They have different public keys and different chaincodes (in addition to different headers in this case).
I see. Somehow I assumed Account Extended Public Key was not affected by derivation. Thanks for educating me.
I am trying to create a watch only wallet and I am unable to create keystore using neither xpub or zpub. The "Apply" button stays greyed-out.
Also, by default keystore derivation is set to m/84'/0'/0' and I would expect zpub to be the default for the key format but the field is xpub. If I enter xpub, the key name changes to zpub/xpub but if I press the "swap" button on the right it converts the xpub to zpub but it doesn't mach the zpub of the xpub entered originally.
Above might be related to https://github.com/sparrowwallet/sparrow/issues/3