diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2020-02-19 16:40:00 +0100 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2021-02-23 14:34:30 +0100 |
commit | 8ce7767071779a0170364e6426bd393ed71bf281 (patch) | |
tree | fade265053d824fbe4409320e73b97294921c4f1 /src/wallet/external_signer_scriptpubkeyman.h | |
parent | 157ea7c614950d61bfe405310e2aaabcee31f7a3 (diff) | |
download | bitcoin-8ce7767071779a0170364e6426bd393ed71bf281.tar.xz |
wallet: add ExternalSignerScriptPubKeyMan
Diffstat (limited to 'src/wallet/external_signer_scriptpubkeyman.h')
-rw-r--r-- | src/wallet/external_signer_scriptpubkeyman.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/wallet/external_signer_scriptpubkeyman.h b/src/wallet/external_signer_scriptpubkeyman.h new file mode 100644 index 0000000000..40edbcf751 --- /dev/null +++ b/src/wallet/external_signer_scriptpubkeyman.h @@ -0,0 +1,28 @@ +// Copyright (c) 2019-2020 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_WALLET_EXTERNAL_SIGNER_SCRIPTPUBKEYMAN_H +#define BITCOIN_WALLET_EXTERNAL_SIGNER_SCRIPTPUBKEYMAN_H + +#ifdef ENABLE_EXTERNAL_SIGNER +#include <wallet/scriptpubkeyman.h> + +class ExternalSignerScriptPubKeyMan : public DescriptorScriptPubKeyMan +{ + public: + ExternalSignerScriptPubKeyMan(WalletStorage& storage, WalletDescriptor& descriptor) + : DescriptorScriptPubKeyMan(storage, descriptor) + {} + ExternalSignerScriptPubKeyMan(WalletStorage& storage, bool internal) + : DescriptorScriptPubKeyMan(storage, internal) + {} + + /** Provide a descriptor at setup time + * Returns false if already setup or setup fails, true if setup is successful + */ + bool SetupDescriptor(std::unique_ptr<Descriptor>desc); +}; +#endif + +#endif // BITCOIN_WALLET_EXTERNAL_SIGNER_SCRIPTPUBKEYMAN_H |