Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use xpub external key in electrum? #862

Closed
ChzenChzen opened this issue Apr 23, 2021 · 2 comments
Closed

Can I use xpub external key in electrum? #862

ChzenChzen opened this issue Apr 23, 2021 · 2 comments

Comments

@ChzenChzen
Copy link

I want to import xpub from joinmarket into electrum, for generating addresses for inputs. Is it possible?

@AdamISZ
Copy link
Member

AdamISZ commented Apr 23, 2021

Yes but there are some details. First, joinmarket uses 5 bip32 accounts by default, electrum by default only uses 1, but i believe you can specify the wallet path (e.g. m/84'/1'/1' which refers to account 1 (the second, starts at 0) in a BIP84 wallet) as part of wallet creation in Electrum (I know it used to be the case, so it probably still is the case). Second of course we use BIP84 which is the commonly used standard for bech32 single signature (p2wpkh) wallets, Electrum may or may not recognize that, several other wallets I know, do, please consult Electrum about that, and if it doesn't directly recognize it, see above. Third, the xpub for your 0th mixdepth (=account 0) is shown both on the command line and in JoinmarketQt when you display the wallet, you can take it from there. If you want to interact with other mixdepths (accounts 1..4) you will have to note the above point about entering custom bip32 wallet paths.

@kristapsk
Copy link
Member

I think Electrum will want zpub for bech32 addresses, see #558. You can use something like https://github.com/jlopp/xpub-converter to convert from xpub to zpub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants