| 877 | } |
| 878 | |
| 879 | static bool ExtractPubKey(const CScript &dest, CPubKey& pubKeyOut) |
| 880 | { |
| 881 | std::vector<std::vector<unsigned char>> solutions; |
| 882 | return Solver(dest, solutions) == TxoutType::PUBKEY && |
| 883 | (pubKeyOut = CPubKey(solutions[0])).IsFullyValid(); |
| 884 | } |
| 885 | |
| 886 | bool LegacyScriptPubKeyMan::RemoveWatchOnly(const CScript &dest) |
| 887 | { |
no test coverage detected