Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.cpp
Show First 20 Lines • Show All 214 Lines • ▼ Show 20 Lines | sigdata.complete = | ||||
solved && VerifyScript(sigdata.scriptSig, fromPubKey, | solved && VerifyScript(sigdata.scriptSig, fromPubKey, | ||||
STANDARD_SCRIPT_VERIFY_FLAGS, creator.Checker()); | STANDARD_SCRIPT_VERIFY_FLAGS, creator.Checker()); | ||||
return sigdata.complete; | return sigdata.complete; | ||||
} | } | ||||
bool SignPSBTInput(const SigningProvider &provider, | bool SignPSBTInput(const SigningProvider &provider, | ||||
const CMutableTransaction &tx, PSBTInput &input, | const CMutableTransaction &tx, PSBTInput &input, | ||||
SignatureData &sigdata, int index, SigHashType sighash) { | SignatureData &sigdata, int index, SigHashType sighash) { | ||||
// if this input has a final scriptsig, don't do anything with it | // If this input has a final scriptsig, don't do anything with it. | ||||
if (!input.final_script_sig.empty()) { | if (!input.final_script_sig.empty()) { | ||||
return true; | return true; | ||||
} | } | ||||
// Fill SignatureData with input info | // Fill SignatureData with input info | ||||
input.FillSignatureData(sigdata); | input.FillSignatureData(sigdata); | ||||
// Get UTXO | // Get UTXO | ||||
▲ Show 20 Lines • Show All 315 Lines • Show Last 20 Lines |