v3.0.0
This release adds support for ANYPREVOUT and ANYPREVOUTANYSCRIPT. There have been numerous breaking changes.
- Refactored
SigHashTypeto useOutputSigHashOptionandInputSigHashOption. Adds ANYPREVOUT and ANYPREVOUTANYSCRIPT. - Add
TapLeafChecksigfor single signature checksig tapscripts - Add
TaprootSingleScriptSigInputto sign tapscripts usingTapLeafChecksig. Can sign using ANYPREVOUT and ANYPREVOUTANYSCRIPT. - Replaced
sign()withsignLegacy(),signLegacyWitness(),signTaproot()andsignTaprootSingleScriptSig(). - Added
SignDetailswith numerous subclasses for providing signing details for inputs.SignatureHashersubclasses andInputsign methods refactored accordingly. - Taproot signatures are made using SIGHASH_DEFAULT by default.