Remove useDescriptor argument.
instead modify logic to
use descriptor 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.
A simpler API could be to use
descriptor
if set, otherwise, usemnemonic
. Throw if none or both are set._Originally posted by @testerez in https://github.com/LtbLightning/bdk-rn/pull/6#discussion_r930035906_
For createWallet:
Remove useDescriptor argument. instead modify logic to use descriptor 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.