moving SignatureHash to Script class