Add Ranges to to Output Descriptors #21199

issue prusnak opened this issue on February 16, 2021
  1. prusnak commented at 3:57 PM on February 16, 2021: contributor

    Output Descriptors do not contain support for ranges.

    BIP44/49/84 account uses two chains (for receiving addresses and for change addresses).

    Having possibility to express ranges would allow us to capture the essence of BIP44/49/84 accounts in one Output Descriptor, e.g.

    pkh([d34db33f/44'/0'/0']xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed54G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL/[0-1]/*)
    

    (note the [0-1]/* at the end).

  2. prusnak added the label Feature on Feb 16, 2021
  3. Rspigler commented at 6:41 PM on February 17, 2021: contributor
  4. sipa commented at 6:51 PM on February 17, 2021: member

    Conceptually, descriptors describe a list of scriptPubKey (along with information for spending from it). If you write xpub/[0-1]/*, do you mean:

    • The list xpub/0/0, xpub/1/0, xpub/0/1, xpub/1/1, xpub/0/2, xpub/1/2, ... (just interleaving the lists)
    • Changing descriptors to effectively be a description of multiple lists?
    • A way of writing two descriptors; perhaps one which is implicitly imbued with the meaning "payment addresses" and a second with meaning "change addresses" (this is often suggested to avoid the redundancy, but I feel this belongs in a different layer)?

    The first, if there is a use case for it, would be fairly simple and fit will in the current design. The others are more invasively, and probably not desirable in all places were descriptors are used.

  5. Rspigler cross-referenced this on Feb 17, 2021 from issue [DRAFT] BIP: Bitcoin Secure Multisig Setup (BSMS) by hugohn
  6. prusnak commented at 7:17 PM on February 17, 2021: contributor

    Ah, I didn't know about #17190 - closing as duplicate of https://github.com/bitcoin/bitcoin/issues/17190

  7. prusnak closed this on Feb 17, 2021

  8. prusnak cross-referenced this on Feb 17, 2021 from issue Add Labels/Groups to Output Descriptors by prusnak
  9. Rspigler cross-referenced this on Feb 24, 2021 from issue wallet: Multi-sig flow with descriptor wallets by laanwj
  10. Rspigler cross-referenced this on May 13, 2021 from issue descriptors: represent multiple derivation paths within one descriptor by achow101
  11. Rspigler cross-referenced this on Jun 28, 2021 from issue Test and document a basic M-of-N multisig using descriptor wallets and PSBTs by mjdietzx
  12. bitcoin locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC