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

Getting error for SortedMulti while parsing descriptor #698

Open
KnowWhoami opened this issue Jun 15, 2024 · 2 comments
Open

Getting error for SortedMulti while parsing descriptor #698

KnowWhoami opened this issue Jun 15, 2024 · 2 comments

Comments

@KnowWhoami
Copy link

KnowWhoami commented Jun 15, 2024

While parsing descriptor which uses SortedMulti function as shown ->

  let a=Descriptor::<DescriptorPublicKey>::parse_descriptor(&secp, "sortedmulti(2,03acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe,022f01e5e15cca351daff3843fb70f3c2f0a1bdd05e5af888a67784ef3e10a2a01)").unwrap();
  
  

I am getting this error->

called `Result::unwrap()` on an `Err` value: Unexpected("sortedmulti(3 args) while parsing Miniscript")
  

After some search -> I found that this error is comming from

"{}({} args) while parsing Miniscript",

  • Well, I guess sortedmulti_a is not yet supported in miniscript?
@apoelstra
Copy link
Member

sortedmulti needs to be wrapped in a top-level descriptor type like wsh.

And no, looks like we don't have sortedmulti_a support yet.

@KnowWhoami
Copy link
Author

sortedmulti needs to be wrapped in a top-level descriptor type like wsh.

yeah , I previously was wrapping it with wsh -> but the function was returning the same value in
Descriptor<DescriptorPublicKey>> type -> after taking off wsh function -> I noticed this error.

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

No branches or pull requests

2 participants