| 53 | } |
| 54 | |
| 55 | util::Result<ExternalSigner> ExternalSignerScriptPubKeyMan::GetExternalSigner() { |
| 56 | const std::string command = gArgs.GetArg("-signer", ""); |
| 57 | if (command == "") return util::Error{Untranslated("restart bitcoind with -signer=<cmd>")}; |
| 58 | std::vector<ExternalSigner> signers; |
| 59 | ExternalSigner::Enumerate(command, signers, Params().GetChainTypeString()); |
| 60 | if (signers.empty()) return util::Error{Untranslated("No external signers found")}; |
| 61 | // TODO: add fingerprint argument instead of failing in case of multiple signers. |
| 62 | if (signers.size() > 1) return util::Error{Untranslated("More than one external signer found. Please connect only one at a time.")}; |
| 63 | return signers[0]; |
| 64 | } |
| 65 | |
| 66 | util::Result<void> ExternalSignerScriptPubKeyMan::DisplayAddress(const CTxDestination& dest, const ExternalSigner &signer) const |
| 67 | { |
nothing calls this directly
no test coverage detected