| 79 | |
| 80 | template<typename T> |
| 81 | bool GenericSignScript(const FillableSigningProvider& keystore, const T& data, const CScript& fromPubKey, SignatureData& scriptSig, unsigned int additional_flags) |
| 82 | { |
| 83 | bool sighash_byte = (additional_flags & SCRIPT_NO_SIGHASH_BYTE) ? false : true; |
| 84 | // Note: Our hash doesn't commit to the sighash byte |
| 85 | return ProduceSignature(keystore, SimpleSignatureCreator(SerializeHash(data), sighash_byte), fromPubKey, scriptSig, additional_flags); |
| 86 | } |
| 87 | |
| 88 | #endif // H_BITCOIN_SCRIPT_GENERIC |
no test coverage detected