Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.h
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | struct SignatureData { | ||||
/// traditional partial signatures format. | /// traditional partial signatures format. | ||||
CScript scriptSig; | CScript scriptSig; | ||||
/// The redeemScript (if any) for the input. | /// The redeemScript (if any) for the input. | ||||
CScript redeem_script; | CScript redeem_script; | ||||
/// BIP 174 style partial signatures for the input. May contain all | /// BIP 174 style partial signatures for the input. May contain all | ||||
/// signatures necessary for producing a final scriptSig. | /// signatures necessary for producing a final scriptSig. | ||||
std::map<CKeyID, SigPair> signatures; | std::map<CKeyID, SigPair> signatures; | ||||
std::map<CKeyID, std::pair<CPubKey, KeyOriginInfo>> misc_pubkeys; | std::map<CKeyID, std::pair<CPubKey, KeyOriginInfo>> misc_pubkeys; | ||||
/// KeyIDs of pubkeys which could not be found | |||||
std::vector<CKeyID> missing_pubkeys; | |||||
/// KeyIDs of pubkeys for signatures which could not be found | |||||
std::vector<CKeyID> missing_sigs; | |||||
/// ScriptID of the missing redeemScript (if any) | |||||
uint160 missing_redeem_script; | |||||
SignatureData() {} | SignatureData() {} | ||||
explicit SignatureData(const CScript &script) : scriptSig(script) {} | explicit SignatureData(const CScript &script) : scriptSig(script) {} | ||||
void MergeSignatureData(SignatureData sigdata); | void MergeSignatureData(SignatureData sigdata); | ||||
}; | }; | ||||
// Takes a stream and multiple arguments and serializes them as if first | // Takes a stream and multiple arguments and serializes them as if first | ||||
// serialized into a vector and then into the stream. The resulting output into | // serialized into a vector and then into the stream. The resulting output into | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |