Monday, November 18, 2024

multi signature – listdescriptors true fails after importing a 2-of-3 multisig descriptor (prv, pub, pub)


By deafult, in a newly created descriptor pockets that’s not watch-only and never empty, listdescriptors true works and provides output.

Nevertheless, here’s a situation that breaks it:

  1. Get a brand new handle within the descriptor pockets.
  2. Retrieve its public handle (pub1)
  3. Create a multisig handle with utilizing this public handle (pub1) and two others (pub2, pub3)
  4. Import the next descriptor into the pockets: sh(multi(priv1,pub2,pub3); I retrieved priv1 from listdescriptors true.
  5. Now, if I strive listdescriptors true once more, an error is returned:
"error": {
  "code": -4,
  "message": "Cannot get descriptor string."
}

Is that this anticipated because of how I imported a descriptor that mixes xprv and pubkeys, or is it a bug?


Word: when importing such a descriptor, I acquired a warning:

{"success": true, "warnings": ["Not all private keys provided. Some wallet functionality may return unexpected errors"]}

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles