Newly created watch-only wallets should not accept just an xpub #954

Open
opened 2026-10-01 21:13:20 +00:00 by achow101 · 1 comment
achow101 commented 2026-10-01 21:13:20 +00:00 (Migrated from github.com)

Accepting an just an xpub commits 2 of the cardinal sins of descriptor wallets:

  1. Assuming a derivation path
  2. Assuming a output script type

Further, it also assumes a birth date, which has other downstream effects on wallet behavior.

Creating a watch-only wallet should either make an entirely blank watch-only wallet and let the user import their descriptors later, or go directly into a descriptor import workflow.

Accepting an just an xpub commits 2 of the cardinal sins of descriptor wallets: 1. Assuming a derivation path 2. Assuming a output script type Further, it also assumes a birth date, which has other downstream effects on wallet behavior. Creating a watch-only wallet should either make an entirely blank watch-only wallet and let the user import their descriptors later, or go directly into a descriptor import workflow.
davidgumberg commented 2026-10-01 21:36:26 +00:00 (Migrated from github.com)

@achow101 partially cont. from an offline discussion:

The user should be prompted for descriptor paths, spending types, and birth date if they know these things (birth date is useful because it saves time during rescanning)

But if they don't know one or more of these we should try our best to guess them.

@achow101 partially cont. from an offline discussion: The user should be prompted for descriptor paths, spending types, and birth date if they know these things (birth date is useful because it saves time during rescanning) But if they don't know one or more of these we should try our best to guess them.
Sign in to join this conversation.
No description provided.