#6016·electrum

implement advanced wallet option: multiple xpubs, mixed script types, and similar (maybe with output script descriptors)

Author: SomberNightCreated Mar 4, 2020Updated Sep 25, 2026
Labelsenhancement ✨topic-wallet 👛

Currently HD wallets created by Electrum are severely limited:

  • there is a single bip32 xpub/xprv and from that a specific simple tree structure is used to derive keys:
    • keys used to derive receive addresses are at path m/0/i, and
    • keys used to derive change addresses are at path m/1/j.
  • no mixed script types; all the addresses use the same (as it is encoded in the xpub/xprv)

I think it would be really nice if there was an option to create an advanced wallet; a power user feature. This wallet could not be restored from seed.

It would allow importing xprvs/xpubs: so the user could have multiple of these. Importing could even be allowed for existing wallets (not just in wizard at creation time). These could have differing script types associated with them.

I think even single privkeys/addresses could be allowed to be imported.

Perhaps the user could mark certain paths to be preferred to be given out as receive addresses, and others as preferred change.

Maybe this would be best implemented after support for output script descriptors (https://github.com/spesmilo/electrum/issues/5694), as those seem useful for creating this advanced wallet; and actually the other direction too: output script descriptors seem a lot more useful if such an advanced wallet can be created.


The wallet could just be a list of output script descriptors, maybe even allowing mixing single addresses and HD descriptors, and optionally "attaching" hardware devices to these descriptors. No more distinction between imported/deterministic wallets: everything could be a list of descriptors - just one wallet type. Well, maybe except for seeded wallet: which would maybe be a subclass of descriptor wallet.