MCPcopy Create free account
hub / github.com/ElementsProject/elements / GenericVerifyScript

Function GenericVerifyScript

src/script/generic.hpp:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72template<typename T>
73bool 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
80template<typename T>
81bool GenericSignScript(const FillableSigningProvider& keystore, const T& data, const CScript& fromPubKey, SignatureData& scriptSig, unsigned int additional_flags)

Callers 1

CheckProofGenericFunction · 0.85

Calls 3

VerifyScriptFunction · 0.85
SerializeHashFunction · 0.85

Tested by

no test coverage detected