Is there any reason why calcWitnessSignatureHashRaw from the txscript package is a private function?
A similar function, CalcSignatureHash, for non witness inputs is public and convenient.
If there are no objective reasons for this, I could send a pull request.
There are the CalcTapscriptSignaturehash and CalcTaprootSignatureHash functions, with the latter being a direct wrapper around calcWitnessSignatureHashRaw. So I don't think anything needs to be changed.
Is there any reason why
calcWitnessSignatureHashRaw
from thetxscript
package is a private function? A similar function,CalcSignatureHash
, for non witness inputs is public and convenient.If there are no objective reasons for this, I could send a pull request.
Thank you