MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetExternalSigner

Method GetExternalSigner

src/wallet/external_signer_scriptpubkeyman.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42ExternalSigner 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
52bool ExternalSignerScriptPubKeyMan::DisplayAddress(const CScript scriptPubKey, const ExternalSigner &signer) const
53{

Callers

nothing calls this directly

Calls 4

GetArgMethod · 0.80
NetworkIDStringMethod · 0.80
ParamsClass · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected