Sjors / libwally-swift

Swift wrapper for LibWally, a collection of useful primitives for cryptocurrency wallets
MIT License
40 stars 18 forks source link

BIP32: scriptPubKey getter for HDKey #6

Open Sjors opened 5 years ago

Sjors commented 5 years ago

Currently (pending #5) you can get the address for a HDKey instance, but in order to get the scriptPubKey, you have to parse the address. This adds complexity when generating a change output, which a wallet shouldn't need to represent as an address (at that stage).

Depends on upstream https://github.com/ElementsProject/libwally-core/issues/117

Sjors commented 1 year ago

As pointed out upstream, it's better to use descriptors for this.