Skip to content

Allow direct importing of xpubs #14449

@ch4ot1c

Description

@ch4ot1c

With the new HD wallet code, importing wallets by xpub is now a possibility.

This would facilitate the creation of watch-only wallets. The current process, as I understand it, includes:

  • Create a new wallet.dat (with createwallet or on first-run)
  • Use dumpwallet to create a file with the extended private masterkey
  • Delete the wallet
  • Recreate the wallet from its xprv with createwallet "name" true, so it is watch-only

This doesn't consider the use case where an offline external client generates the xprv and xpub

We should be allowed to import an xpub:

  • At the root
  • At a given derivation path

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions