Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 GetTaprootSpendData (const XOnlyPubKey &output_key, TaprootSpendData &spenddata) const
virtual bool GetTaprootBuilder (const XOnlyPubKey &output_key, TaprootBuilder &builder) const
virtual std::vector< CPubKeyGetMuSig2ParticipantPubkeys (const CPubKey &pubkey) const
virtual std::map< CPubKey, std::vector< CPubKey > > GetAllMuSig2ParticipantPubkeys () const
virtual void SetMuSig2SecNonce (const uint256 &id, MuSig2SecNonce &&nonce) const
virtual std::optional< std::reference_wrapper< MuSig2SecNonce > > GetMuSig2SecNonce (const uint256 &session_id) const
virtual void DeleteMuSig2Session (const uint256 &session_id) 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 260 of file scriptpubkeyman.h.

Constructor & Destructor Documentation

◆ LegacySigningProvider()

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

Definition at line 265 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 267 of file scriptpubkeyman.h.

◆ GetKey()

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

Reimplemented from SigningProvider.

Definition at line 270 of file scriptpubkeyman.h.

◆ GetKeyOrigin()

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

Reimplemented from SigningProvider.

Definition at line 272 of file scriptpubkeyman.h.

◆ GetPubKey()

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

Reimplemented from SigningProvider.

Definition at line 269 of file scriptpubkeyman.h.

◆ HaveCScript()

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

Reimplemented from SigningProvider.

Definition at line 268 of file scriptpubkeyman.h.

◆ HaveKey()

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

Reimplemented from SigningProvider.

Definition at line 271 of file scriptpubkeyman.h.

Member Data Documentation

◆ m_spk_man

const LegacyDataSPKM& wallet::LegacySigningProvider::m_spk_man
private

Definition at line 263 of file scriptpubkeyman.h.


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