Bitcoin Core
31.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
external_signer.h
Go to the documentation of this file.
1
// Copyright (c) 2018-present The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_EXTERNAL_SIGNER_H
6
#define BITCOIN_EXTERNAL_SIGNER_H
7
8
#include <
common/system.h
>
9
#include <
univalue.h
>
10
11
#include <string>
12
#include <vector>
13
14
struct
PartiallySignedTransaction
;
15
18
class
ExternalSigner
19
{
20
private
:
22
std::vector<std::string>
m_command
;
23
25
std::string
m_chain
;
26
27
std::vector<std::string>
NetworkArg
()
const
;
28
29
public
:
34
ExternalSigner
(std::vector<std::string>
command
, std::string chain, std::string fingerprint, std::string
name
);
35
37
std::string
m_fingerprint
;
38
40
std::string
m_name
;
41
47
static
bool
Enumerate
(
const
std::string&
command
, std::vector<ExternalSigner>& signers,
const
std::string& chain);
48
52
UniValue
DisplayAddress
(
const
std::string& descriptor)
const
;
53
58
UniValue
GetDescriptors
(
int
account);
59
63
bool
SignTransaction
(
PartiallySignedTransaction
& psbt, std::string& error);
64
};
65
66
#endif
// BITCOIN_EXTERNAL_SIGNER_H
command
const auto command
Definition
bitcoin-wallet.cpp:116
ExternalSigner::m_chain
std::string m_chain
Bitcoin mainnet, testnet, etc.
Definition
external_signer.h:25
ExternalSigner::Enumerate
static bool Enumerate(const std::string &command, std::vector< ExternalSigner > &signers, const std::string &chain)
Definition
external_signer.cpp:27
ExternalSigner::DisplayAddress
UniValue DisplayAddress(const std::string &descriptor) const
Definition
external_signer.cpp:67
ExternalSigner::NetworkArg
std::vector< std::string > NetworkArg() const
Definition
external_signer.cpp:22
ExternalSigner::SignTransaction
bool SignTransaction(PartiallySignedTransaction &psbt, std::string &error)
Definition
external_signer.cpp:77
ExternalSigner::m_name
std::string m_name
Name of signer.
Definition
external_signer.h:40
ExternalSigner::m_command
std::vector< std::string > m_command
The command which handles interaction with the external signer.
Definition
external_signer.h:22
ExternalSigner::GetDescriptors
UniValue GetDescriptors(int account)
Definition
external_signer.cpp:72
ExternalSigner::m_fingerprint
std::string m_fingerprint
Master key fingerprint of the signer.
Definition
external_signer.h:37
ExternalSigner::ExternalSigner
ExternalSigner(std::vector< std::string > command, std::string chain, std::string fingerprint, std::string name)
Definition
external_signer.cpp:19
UniValue
Definition
univalue.h:22
name
const char * name
Definition
rest.cpp:48
PartiallySignedTransaction
A version of CTransaction with the PSBT format.
Definition
psbt.h:1139
system.h
univalue.h
Generated on
for Bitcoin Core by
1.17.0