LtbLightning / bdk-rn

Bitcoin Development Kit - React Native Module
MIT License
50 stars 15 forks source link

update createDescriptor api #24

Closed BitcoinZavior closed 2 years ago

BitcoinZavior commented 2 years ago

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.