bitcoinjs/bitcoinjs-lib

PSBT HD signing does not support taproot

gregdhill opened this issue · 2 comments

I want to use signInputHD for a taproot script path spend but that will fail if I don't specify bip32Derivation here. It is also not possible to use inputHasHDKey without bip32Derivation. I can't set bip32Derivation since tapLeafScript is defined which would otherwise throw this error. I'm assuming it is intended to use tapBip32Derivation instead but that doesn't seem to be wired up.

For more context I am working on integrating the code linked here (creating inscriptions) with the MetaMask Bitcoin snap which fails here. The only solution I can see right now is to use signAllInputs and force the derivation path from the caller.

@motorina0 Why do we prevent HD path info in taproot inputs?