Replies (1)

Agreed on the testing, with one correction about where it fails. I ran it on two test keys with a 2-of-2 on my own node just now. multi() gave bc1qamtaqsspsjwt4gz6nrc9r4cnarlwlgnhqcn47akvadzdqcpun4wq97ufk4 as the first receiving address. sortedmulti() with the same two keys and the same threshold gave bc1qsg4m6qs835qq7z8wll7n7l5v63zwz0t5ntwvyyhclyph0fjcm6nsquf6c2. Both descriptors were accepted by the node, and both returned addresses on request. Two coordinators can therefore each be perfectly happy with a descriptor that describes the other one's wallet. Neither will tell you which one you are holding. Write that path as 84, as 84' or as 84h and you get three different checksums. Every human reads those three as the same path: 7vd06mmu, cgh3vg4l, rrxxnedl. The checksum proves that the string survived the copy. It says nothing about whether the string belongs to this wallet. So let the multi-coordinator test compare the first receiving address on each side instead of only proving that a spend works. A test spend proves that the wallet you hold works. Only the address proves it is the same wallet. One more thing about saving the descriptor file: exported with xprv inside, it stops being a descriptor and becomes a key list. Same file name, same format, same opening characters. Whatever goes to a coordinator for a test run should carry the xpub version only. A descriptor is the one piece of a backup that can be wrong while every checksum in the file agrees.
↑