Issue Details
- Number
- 21197
- Title
- Add Labels/Groups to Output Descriptors
- Description
- [Output Descriptors](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md#multisig) do not contain labels.
Having labels for the descriptors could greatly enhance the UX of the wallets using these.
We could use syntax similar to this one to introduce labels. The characters `{}` are unused yet in the descriptors and the [Checksums](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md#checksums) section mentions that using these does not decrease the error detection ability of the currently used checksum.
```
sh(multi(2,{Alice}022f01e5e15cca351daff3843fb70f3c2f0a1bdd05e5af888a67784ef3e10a2a01,{Bob}03acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe))
```
or
```
wsh(sortedmulti(1,{Alice}xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB/1/0/*,{Bob}xpub69H7F5d8KSRgmmdJg2KhpAK8SR3DjMwAdkxj3ZuxV27CprR9LgpeyGmXUbC6wb7ERfvrnKZjXoUmmDznezpbZb7ap6r1D3tgFxHmwMkQTPH/0/0/*))
```
Related to https://github.com/nunchuk-io/bips/pull/1 where the need originated from.
Having labels also is also beneficial for scenarios where no multisig is used, because that allows the naming of exported descriptors for watch-only wallet, e.g.
```
pkh({Corporate Cold Wallet}[d34db33f/44'/0'/0']xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed54G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL/0/*)
```
- URL
-
https://github.com/bitcoin/bitcoin/issue/21197
- Closed by
-
Back to List