Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
wallet::LegacySigningProvider Class Reference

Wraps a LegacyScriptPubKeyMan so that it can be returned in a new unique_ptr. More...

#include <scriptpubkeyman.h>

Inheritance diagram for wallet::LegacySigningProvider:
[legend]
Collaboration diagram for wallet::LegacySigningProvider:
[legend]

Public Member Functions

 LegacySigningProvider (const LegacyDataSPKM &spk_man)
 
bool GetCScript (const CScriptID &scriptid, CScript &script) const override
 
bool HaveCScript (const CScriptID &scriptid) const override
 
bool GetPubKey (const CKeyID &address, CPubKey &pubkey) const override
 
bool GetKey (const CKeyID &address, CKey &key) const override
 
bool HaveKey (const CKeyID &address) const override
 
bool GetKeyOrigin (const CKeyID &keyid, KeyOriginInfo &info) const override
 
- Public Member Functions inherited from SigningProvider
virtual ~SigningProvider ()=default
 
virtual bool GetCScript (const CScriptID &scriptid, CScript &script) const
 
virtual bool HaveCScript (const CScriptID &scriptid) const
 
virtual bool GetPubKey (const CKeyID &address, CPubKey &pubkey) const
 
virtual bool GetKey (const CKeyID &address, CKey &key) const
 
virtual bool HaveKey (const CKeyID &address) const
 
virtual bool GetKeyOrigin (const CKeyID &keyid, KeyOriginInfo &info) const
 
virtual bool GetTaprootSpendData (const XOnlyPubKey &output_key, TaprootSpendData &spenddata) const
 
virtual bool GetTaprootBuilder (const XOnlyPubKey &output_key, TaprootBuilder &builder) const
 
bool GetKeyByXOnly (const XOnlyPubKey &pubkey, CKey &key) const
 
bool GetPubKeyByXOnly (const XOnlyPubKey &pubkey, CPubKey &out) const
 
bool GetKeyOriginByXOnly (const XOnlyPubKey &pubkey, KeyOriginInfo &info) const
 

Private Attributes

const LegacyDataSPKMm_spk_man
 

Detailed Description

Wraps a LegacyScriptPubKeyMan so that it can be returned in a new unique_ptr.

Does not provide privkeys

Definition at line 569 of file scriptpubkeyman.h.

Constructor & Destructor Documentation

◆ LegacySigningProvider()

wallet::LegacySigningProvider::LegacySigningProvider ( const LegacyDataSPKM spk_man)
inlineexplicit

Definition at line 574 of file scriptpubkeyman.h.

Member Function Documentation

◆ GetCScript()

bool wallet::LegacySigningProvider::GetCScript ( const CScriptID scriptid,
CScript script 
) const
inlineoverridevirtual

Reimplemented from SigningProvider.

Definition at line 576 of file scriptpubkeyman.h.

Here is the call graph for this function:

◆ GetKey()

bool wallet::LegacySigningProvider::GetKey ( const CKeyID address,
CKey key 
) const
inlineoverridevirtual

Reimplemented from SigningProvider.

Definition at line 579 of file scriptpubkeyman.h.

◆ GetKeyOrigin()

bool wallet::LegacySigningProvider::GetKeyOrigin ( const CKeyID keyid,
KeyOriginInfo info 
) const
inlineoverridevirtual

Reimplemented from SigningProvider.

Definition at line 581 of file scriptpubkeyman.h.

Here is the call graph for this function:

◆ GetPubKey()

bool wallet::LegacySigningProvider::GetPubKey ( const CKeyID address,
CPubKey pubkey 
) const
inlineoverridevirtual

Reimplemented from SigningProvider.

Definition at line 578 of file scriptpubkeyman.h.

Here is the call graph for this function:

◆ HaveCScript()

bool wallet::LegacySigningProvider::HaveCScript ( const CScriptID scriptid) const
inlineoverridevirtual

Reimplemented from SigningProvider.

Definition at line 577 of file scriptpubkeyman.h.

Here is the call graph for this function:

◆ HaveKey()

bool wallet::LegacySigningProvider::HaveKey ( const CKeyID address) const
inlineoverridevirtual

Reimplemented from SigningProvider.

Definition at line 580 of file scriptpubkeyman.h.

Member Data Documentation

◆ m_spk_man

const LegacyDataSPKM& wallet::LegacySigningProvider::m_spk_man
private

Definition at line 572 of file scriptpubkeyman.h.


The documentation for this class was generated from the following file: