| 40 | } |
| 41 | |
| 42 | ExternalSigner ExternalSignerScriptPubKeyMan::GetExternalSigner() { |
| 43 | const std::string command = gArgs.GetArg("-signer", ""); |
| 44 | if (command == "") throw std::runtime_error(std::string(__func__) + ": restart bitcoind with -signer=<cmd>"); |
| 45 | std::vector<ExternalSigner> signers; |
| 46 | ExternalSigner::Enumerate(command, signers, Params().NetworkIDString()); |
| 47 | if (signers.empty()) throw std::runtime_error(std::string(__func__) + ": No external signers found"); |
| 48 | // TODO: add fingerprint argument in case of multiple signers |
| 49 | return signers[0]; |
| 50 | } |
| 51 | |
| 52 | bool ExternalSignerScriptPubKeyMan::DisplayAddress(const CScript scriptPubKey, const ExternalSigner &signer) const |
| 53 | { |
nothing calls this directly
no test coverage detected