Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.cpp
Show First 20 Lines • Show All 394 Lines • ▼ Show 20 Lines | bool CreateSig(const SigningProvider &provider, | ||||
vchSig[6 + 33 + 32] = SIGHASH_ALL | SIGHASH_FORKID; | vchSig[6 + 33 + 32] = SIGHASH_ALL | SIGHASH_FORKID; | ||||
return true; | return true; | ||||
} | } | ||||
}; | }; | ||||
} // namespace | } // namespace | ||||
const BaseSignatureCreator &DUMMY_SIGNATURE_CREATOR = DummySignatureCreator(); | const BaseSignatureCreator &DUMMY_SIGNATURE_CREATOR = DummySignatureCreator(); | ||||
const SigningProvider &DUMMY_SIGNING_PROVIDER = SigningProvider(); | const SigningProvider &DUMMY_SIGNING_PROVIDER = SigningProvider(); | ||||
bool PartiallySignedTransaction::IsNull() const { | |||||
return !tx && inputs.empty() && outputs.empty() && unknown.empty(); | |||||
} | |||||
bool PSBTInput::IsNull() const { | |||||
return utxo.IsNull() && partial_sigs.empty() && unknown.empty() && | |||||
hd_keypaths.empty() && redeem_script.empty(); | |||||
} | |||||
bool PSBTOutput::IsNull() const { | |||||
return redeem_script.empty() && hd_keypaths.empty() && unknown.empty(); | |||||
} |