Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
MultiSigningProvider Class Reference

A signing provider to be used to interface with multiple signing providers at once. More...

#include <signingprovider.h>

Inheritance diagram for MultiSigningProvider:
[legend]
Collaboration diagram for MultiSigningProvider:
[legend]

Public Member Functions

void AddProvider (std::unique_ptr< SigningProvider > provider)
 
bool GetCScript (const CScriptID &scriptid, CScript &script) const override
 
bool GetPubKey (const CKeyID &keyid, CPubKey &pubkey) const override
 
bool GetKeyOrigin (const CKeyID &keyid, KeyOriginInfo &info) const override
 
bool GetKey (const CKeyID &keyid, CKey &key) const override
 
bool GetTaprootSpendData (const XOnlyPubKey &output_key, TaprootSpendData &spenddata) const override
 
bool GetTaprootBuilder (const XOnlyPubKey &output_key, TaprootBuilder &builder) const override
 
- Public Member Functions inherited from SigningProvider
virtual ~SigningProvider ()=default
 
virtual bool HaveCScript (const CScriptID &scriptid) const
 
virtual bool HaveKey (const CKeyID &address) 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

std::vector< std::unique_ptr< SigningProvider > > m_providers
 

Detailed Description

A signing provider to be used to interface with multiple signing providers at once.

Definition at line 302 of file signingprovider.h.

Member Function Documentation

◆ AddProvider()

void MultiSigningProvider::AddProvider ( std::unique_ptr< SigningProvider provider)

Definition at line 231 of file signingprovider.cpp.

Here is the caller graph for this function:

◆ GetCScript()

bool MultiSigningProvider::GetCScript ( const CScriptID scriptid,
CScript script 
) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 236 of file signingprovider.cpp.

◆ GetKey()

bool MultiSigningProvider::GetKey ( const CKeyID keyid,
CKey key 
) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 261 of file signingprovider.cpp.

◆ GetKeyOrigin()

bool MultiSigningProvider::GetKeyOrigin ( const CKeyID keyid,
KeyOriginInfo info 
) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 253 of file signingprovider.cpp.

◆ GetPubKey()

bool MultiSigningProvider::GetPubKey ( const CKeyID keyid,
CPubKey pubkey 
) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 244 of file signingprovider.cpp.

◆ GetTaprootBuilder()

bool MultiSigningProvider::GetTaprootBuilder ( const XOnlyPubKey output_key,
TaprootBuilder builder 
) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 277 of file signingprovider.cpp.

◆ GetTaprootSpendData()

bool MultiSigningProvider::GetTaprootSpendData ( const XOnlyPubKey output_key,
TaprootSpendData spenddata 
) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 269 of file signingprovider.cpp.

Member Data Documentation

◆ m_providers

std::vector<std::unique_ptr<SigningProvider> > MultiSigningProvider::m_providers
private

Definition at line 303 of file signingprovider.h.


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