How can I sign a P2WSH and get that signature into TxIn Witness field? If no one has done that then please give me a quick guide on how to write it in the codebase, and I will submit another Pr.
Currently, I have to dump privkey from btcwallet and then use that private key to sign P2WSH transaction which is not really ideal.
Hi @Roasbeef,
I am under the impression that SignTransaction will only sign a script ver 0 (P2SH)(https://github.com/btcsuite/btcwallet/blob/master/wallet/wallet.go#L3586)
How can I sign a P2WSH and get that signature into TxIn Witness field? If no one has done that then please give me a quick guide on how to write it in the codebase, and I will submit another Pr.
Currently, I have to dump privkey from btcwallet and then use that private key to sign P2WSH transaction which is not really ideal.