Remove useMnemonic argument. instead modify logic to: use xpriv if set, otherwise, use mnemonic. Throw error if none or both are set.
if mnemonic flow is chosen network should be specified but password can be optional
The rest of the arguments should use default values.
In createDescriptor:
Remove useMnemonic argument. instead modify logic to: use xpriv if set, otherwise, use mnemonic. Throw error if none or both are set. if mnemonic flow is chosen network should be specified but password can be optional The rest of the arguments should use default values.