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

Function GenericSignScript

src/script/generic.hpp:81–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79
80template<typename T>
81bool 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

Callers 1

signblockFunction · 0.85

Calls 3

ProduceSignatureFunction · 0.85
SerializeHashFunction · 0.85

Tested by

no test coverage detected