| 62 | } |
| 63 | |
| 64 | std::vector<CTxDestination> GetAllDestinationsForKey(const CPubKey& key) |
| 65 | { |
| 66 | CKeyID keyid = key.GetID(); |
| 67 | if (key.IsCompressed()) { |
| 68 | CTxDestination segwit = WitnessV0KeyHash(keyid); |
| 69 | CTxDestination p2sh = CScriptID(GetScriptForDestination(segwit)); |
| 70 | return std::vector<CTxDestination>{std::move(keyid), std::move(p2sh), std::move(segwit)}; |
| 71 | } else { |
| 72 | return std::vector<CTxDestination>{std::move(keyid)}; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | CTxDestination AddAndGetDestinationForScript(CKeyStore& keystore, const CScript& script, OutputType type) |
| 77 | { |
no test coverage detected