refactor: make ExternalSigner NetworkArg() and m_chain private

This commit is contained in:
Sjors Provoost
2021-06-15 16:58:55 +02:00
parent 4455145e26
commit d672404466
2 changed files with 8 additions and 8 deletions

View File

@@ -21,24 +21,24 @@ private:
//! The command which handles interaction with the external signer.
std::string m_command;
//! Bitcoin mainnet, testnet, etc
std::string m_chain;
const std::string NetworkArg() const;
public:
//! @param[in] command the command which handles interaction with the external signer
//! @param[in] fingerprint master key fingerprint of the signer
//! @param[in] chain "main", "test", "regtest" or "signet"
//! @param[in] name device name
ExternalSigner(const std::string& command, const std::string& fingerprint, const std::string chain, const std::string name);
ExternalSigner(const std::string& command, const std::string chain, const std::string& fingerprint, const std::string name);
//! Master key fingerprint of the signer
std::string m_fingerprint;
//! Bitcoin mainnet, testnet, etc
std::string m_chain;
//! Name of signer
std::string m_name;
const std::string NetworkArg() const;
//! Obtain a list of signers. Calls `<command> enumerate`.
//! @param[in] command the command which handles interaction with the external signer
//! @param[in,out] signers vector to which new signers (with a unique master key fingerprint) are added