| 219 | return true; |
| 220 | } |
| 221 | bool Expand(int pos, const SigningProvider& arg, std::vector<CScript>& output_scripts, FlatSigningProvider& out) const override |
| 222 | { |
| 223 | CPubKey key; |
| 224 | if (!m_provider->GetPubKey(pos, arg, key)) return false; |
| 225 | output_scripts = std::vector<CScript>{m_script_fn(key)}; |
| 226 | out.pubkeys.emplace(key.GetID(), std::move(key)); |
| 227 | return true; |
| 228 | } |
| 229 | }; |
| 230 | |
| 231 | CScript P2PKHGetScript(const CPubKey& pubkey) { return GetScriptForDestination(pubkey.GetID()); } |