add support for signatures in scriptsignature format.