Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
  • Loading branch information
janus committed Aug 19, 2024
1 parent 2f9dea4 commit e5d9e95
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/external_signer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,14 @@ bool ExternalSigner::Enumerate(const std::string& command, std::vector<ExternalS
return true;
}


UniValue ExternalSigner::DisplayAddress(const std::string& descriptor) const
{
return RunCommandParseJSON(m_command + " --fingerprint \"" + m_fingerprint + "\"" + NetworkArg() + " displayaddress --desc \"" + descriptor + "\"");
return RunCommandParseJSON(m_command + " --fingerprint " + m_fingerprint + NetworkArg() + " displayaddress --desc " + descriptor);
}

UniValue ExternalSigner::GetDescriptors(const int account)
{
return RunCommandParseJSON(m_command + " --fingerprint \"" + m_fingerprint + "\"" + NetworkArg() + " getdescriptors --account " + strprintf("%d", account));
return RunCommandParseJSON(m_command + " --fingerprint " + m_fingerprint + NetworkArg() + " getdescriptors --account " + strprintf("%d", account));
}

bool ExternalSigner::SignTransaction(PartiallySignedTransaction& psbtx, std::string& error)
Expand All @@ -94,8 +93,8 @@ bool ExternalSigner::SignTransaction(PartiallySignedTransaction& psbtx, std::str
return false;
}

const std::string command = m_command + " --stdin --fingerprint \"" + m_fingerprint + "\"" + NetworkArg();
const std::string stdinStr = "signtx \"" + EncodeBase64(ssTx.str()) + "\"";
const std::string command = m_command + " --stdin --fingerprint " + m_fingerprint + NetworkArg();
const std::string stdinStr = "signtx " + EncodeBase64(ssTx.str());

const UniValue signer_result = RunCommandParseJSON(command, stdinStr);

Expand Down
1 change: 1 addition & 0 deletions src/external_signer.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class ExternalSigner

//! Master key fingerprint of the signer
std::string m_fingerprint;

//! Name of signer
std::string m_name;

Expand Down
Binary file modified src/qt/locale/BGL_ar.qm
Binary file not shown.
Binary file modified src/qt/locale/BGL_hi.qm
Binary file not shown.

0 comments on commit e5d9e95

Please sign in to comment.