Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Cosigner Descriptor Cross-Compatible? #154

Open
shannona opened this issue Mar 8, 2022 · 3 comments
Open

Is Cosigner Descriptor Cross-Compatible? #154

shannona opened this issue Mar 8, 2022 · 3 comments
Labels
question Further information is requested

Comments

@shannona
Copy link
Contributor

shannona commented Mar 8, 2022

The cosigner key derivations have descriptors such as this:

wsh(cosigner([604b93f2/48'/0'/0'/2']xpub6Ei68cXfmneJ5LVL2E3WR2SwLc5KWGcFYmTzRbv3jHVUMMbagupM4bL12vKdKktKeXPD6dqyCbyeCiDi2VCAdvVNPoMxnaGdyhmbJURevqD))#wmsu2266

I can't find any documentation on cosigner as a descriptor function, and it's not supported by bitcoin-cli. Is this sufficiently compatible, or should we be using multi instead?

Per #145.

@shannona shannona added the question Further information is requested label Mar 8, 2022
@ChristopherA
Copy link
Contributor

I think it is sortedmulti, as multi is being slowly deprecated.

@shannona
Copy link
Contributor Author

shannona commented Mar 8, 2022

As an addendum, Sparrow reads this correctly, though they read off of the crypto-output:

ur:crypto-output/taadmetaadnytaaddloxaxhdclaohldlmdrtlacxhnfpptplfyltwelafsnezslyndhllnvdimmwlpylkbwzjltbdmenaahdcxlejtimcnrlbtdemdoereyaqzprkpndbdgwfzflqdbzkohgzobycxcnvabaosbglfamtaaddyoeadlocsdyykaeykaeykaoykaocyhngrmuwzaycynewncnlblgfpvaae

Which is:

401(410(303({3: h'025d2f95c080206041a9ae4487ed803d9ffa819b5d86e76a9485f77ef26fd62e36', 4: h'8a6e6a23b70d2895a2b5f8b4b2759b0b4f4047b3157657fb112023e60ea71282', 6: 304({1: [48, true, 0, true, 0, true, 2, true], 2: 1615565810}), 8: 2683380607})))

401 is wsh and 410 is cosigner (versus 407 for sorted-multisig), per the CDDL.

But my question remains of where cosigner came from and if it's in an evolving standard.

@wolfmcnally
Copy link
Collaborator

It's based on a conversation I had with Craig Raw. I'll post screen caps of it to Signal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants