BIP67 + importmulti + multisig descriptors

1

I'm trying to setup a Bitcoin Core watch-only wallet using importmulti and a sh(multi(m,xpub1/*,...,xpubn/*)) ranged descriptor, and then use deriveaddresses to get receiving addresses.

Is it possible to import only BIP-67-compliant addresses somehow? With a ranged descriptor I can't manually order the multisig script pubkeys from my side as suggested in this abandoned PR because my client only touches the account xpubs.

I could manually inspect and skip addresses until I get ordered pubkeys, but that's really ugly and fragile.

justinmoon

Posted 2019-08-28T21:19:50.387

Reputation: 311

Answers

3

No, the descriptors language currently doesn't support BIP67.

It would be easy to add a multi_bip67 or so to the language if there is a need for it.

Pieter Wuille

Posted 2019-08-28T21:19:50.387

Reputation: 54 032

Thanks, Pieter.justinmoon 2019-08-28T21:35:20.490

1

There's a PR for that now: https://github.com/bitcoin/bitcoin/pull/17056

Sjors Provoost 2019-10-05T11:29:48.677