bitcoindevkit / bdk-cli

A CLI wallet library and REPL tool to demo and test the BDK library
Other
108 stars 64 forks source link

Generating wpkh script type descriptors with compile #164

Open i5hi opened 10 months ago

i5hi commented 10 months ago

Describe the enhancement
Currently compile only supports wsh, sh and sh-wsh. we require support for wpkh script type as well.

Use case
Although wpkh descriptors are straightforward to create by hand, calculating the checksum requires additional work. Checksum is required if we want to export a bdk wallet to certain other wallets - for example bitcoin core. Bitcoin core in particular supports calculating a checksum given a descriptor but not all wallets do.

Additional context Please let me know if this is already possible in bdk-cli; if not I will make a PR to add support for wpkh.