Closed
Description
CHECKSIGFROMSTACKVERIFY calls CheckSignatureEncoding:
elements/src/script/interpreter.cpp
Line 1228 in 1e20db4
CheckSignatureEncoding in turns calls IsDefinedHashtypeSignature
elements/src/script/interpreter.cpp
Line 145 in 1e20db4
which is incorrect because signatures for CHECKSIGFROMSTACKVERIFY do not have hashtypes.
One way of fixing this could be to mask out SCRIPT_VERIFY_STRICTENC when calling CheckSignatureEncoding.
A better way would be to give signatures from CHECKSIG and CHECKSIGFROMSTACK different types.