5#ifndef BITCOIN_EXTERNAL_SIGNER_H
6#define BITCOIN_EXTERNAL_SIGNER_H
34 ExternalSigner(
const std::string&
command,
const std::string chain,
const std::string& fingerprint,
const std::string
name);
47 static bool Enumerate(
const std::string&
command, std::vector<ExternalSigner>& signers,
const std::string chain);
Enables interaction with an external signing device or service, such as a hardware wallet.
std::string m_chain
Bitcoin mainnet, testnet, etc.
UniValue DisplayAddress(const std::string &descriptor) const
Display address on the device.
UniValue GetDescriptors(const int account)
Get receive and change Descriptor(s) from device for a given account.
bool SignTransaction(PartiallySignedTransaction &psbt, std::string &error)
Sign PartiallySignedTransaction on the device.
std::string NetworkArg() const
std::string m_name
Name of signer.
std::string m_fingerprint
Master key fingerprint of the signer.
std::string m_command
The command which handles interaction with the external signer.
static bool Enumerate(const std::string &command, std::vector< ExternalSigner > &signers, const std::string chain)
Obtain a list of signers.
ExternalSigner(const std::string &command, const std::string chain, const std::string &fingerprint, const std::string name)
A version of CTransaction with the PSBT format.