Isolate ECDSA-specific parts in preparation for Schnorr.
Next steps would be:
- Disallow 64 byte ECDSA signatures in CheckRawECDSASignatureEncoding when SCRIPT_ENABLE_SCHNORR flag is set (D2469)
- Add Schnorr-specific functions for checking signature encodings