Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.cpp
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | switch (whichTypeRet) { | ||||
CPubKey(vSolutions[0]), scriptPubKey)) { | CPubKey(vSolutions[0]), scriptPubKey)) { | ||||
return false; | return false; | ||||
} | } | ||||
ret.push_back(std::move(sig)); | ret.push_back(std::move(sig)); | ||||
return true; | return true; | ||||
case TX_PUBKEYHASH: { | case TX_PUBKEYHASH: { | ||||
CKeyID keyID = CKeyID(uint160(vSolutions[0])); | CKeyID keyID = CKeyID(uint160(vSolutions[0])); | ||||
CPubKey pubkey; | CPubKey pubkey; | ||||
provider.GetPubKey(keyID, pubkey); | if (!provider.GetPubKey(keyID, pubkey)) { | ||||
return false; | |||||
} | |||||
if (!CreateSig(creator, sigdata, provider, sig, pubkey, | if (!CreateSig(creator, sigdata, provider, sig, pubkey, | ||||
scriptPubKey)) { | scriptPubKey)) { | ||||
return false; | return false; | ||||
} | } | ||||
ret.push_back(std::move(sig)); | ret.push_back(std::move(sig)); | ||||
ret.push_back(ToByteVector(pubkey)); | ret.push_back(ToByteVector(pubkey)); | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 351 Lines • Show Last 20 Lines |