LtbLightning / bdk-rn

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

Create descriptor with a xpub instead of xpriv #7

Open BitcoinZavior opened 2 years ago

BitcoinZavior commented 2 years ago

createDescriptor method should be able to create a descriptor by using a public key instead of xPrv or mnemonic. This could be an additional option to create a descriptor.

A product might choose to use its own specific tech stack or architecture to generate a mnemonic and its own specific path to generate a private key and then a public key. The app shouldn't have to specify the private key to create a descriptor.