| 71 | |
| 72 | template<typename T> |
| 73 | bool GenericVerifyScript(const CScript& scriptSig, const CScriptWitness& witness, const CScript& scriptPubKey, unsigned int flags, const T& data) |
| 74 | { |
| 75 | bool sighash_byte = (flags & SCRIPT_NO_SIGHASH_BYTE) ? false : true; |
| 76 | // Note: Our hash doesn't commit to the sighash byte |
| 77 | return VerifyScript(scriptSig, scriptPubKey, &witness, flags, SimpleSignatureChecker(SerializeHash(data), sighash_byte)); |
| 78 | } |
| 79 | |
| 80 | template<typename T> |
| 81 | bool GenericSignScript(const FillableSigningProvider& keystore, const T& data, const CScript& fromPubKey, SignatureData& scriptSig, unsigned int additional_flags) |
no test coverage detected