I was looking through the Bitcoin Core change descriptor for a 2of2 multisig wallet created in Sparrow wallet. I saw that for some reason, the pubkey positions in sortedmulti are reversed for the Change Descriptor (as compared to the Receive Descriptor).
Example of what Sparrow gave me with fpr1 / fpr2 as the fingerprints and xpub1 / xpub2 as the xpubs:
# Receive descriptor (Bitcoin Core):
wsh(sortedmulti(2,[fpr1/48h/0h/0h/2h]xpub1/0/*,[fpr2/48h/0h/0h/2h]xpub2/0/*))#xxxxxxxx
# Change descriptor (Bitcoin Core):
wsh(sortedmulti(2,[fpr2/48h/0h/0h/2h]xpub2/1/*,[fpr1/48h/0h/0h/2h]xpub1/1/*))#yyyyyyyy
-
Am I correct this has no effect because the pubkeys will be sorted back to the correct order?
-
Is there a good reason for Sparrow to do this?











