| 66 | } |
| 67 | |
| 68 | bool HaveKeys(const std::vector<valtype>& pubkeys, const LegacyDataSPKM& keystore) |
| 69 | { |
| 70 | for (const valtype& pubkey : pubkeys) { |
| 71 | CKeyID keyID = CPubKey(pubkey).GetID(); |
| 72 | if (!keystore.HaveKey(keyID)) return false; |
| 73 | } |
| 74 | return true; |
| 75 | } |
| 76 | |
| 77 | //! Recursively solve script and return spendable/watchonly/invalid status. |
| 78 | //! |
no test coverage detected