Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
FlatSigningProvider Struct Referencefinal

#include <signingprovider.h>

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

Public Member Functions

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 HaveKey (const CKeyID &keyid) 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
std::vector< CPubKeyGetMuSig2ParticipantPubkeys (const CPubKey &pubkey) const override
std::map< CPubKey, std::vector< CPubKey > > GetAllMuSig2ParticipantPubkeys () const override
void SetMuSig2SecNonce (const uint256 &id, MuSig2SecNonce &&nonce) const override
std::optional< std::reference_wrapper< MuSig2SecNonce > > GetMuSig2SecNonce (const uint256 &session_id) const override
void DeleteMuSig2Session (const uint256 &session_id) const override
FlatSigningProviderMerge (FlatSigningProvider &&b) LIFETIMEBOUND
Public Member Functions inherited from SigningProvider
virtual ~SigningProvider ()=default
virtual bool HaveCScript (const CScriptID &scriptid) 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

Public Attributes

std::map< CScriptID, CScriptscripts
std::map< CKeyID, CPubKeypubkeys
std::map< CKeyID, std::pair< CPubKey, KeyOriginInfo > > origins
std::map< CKeyID, CKeykeys
std::map< XOnlyPubKey, TaprootBuildertr_trees
std::map< CPubKey, std::vector< CPubKey > > aggregate_pubkeys
 Map from output key to Taproot tree (which can then make the TaprootSpendData.
std::map< uint256, MuSig2SecNonce > * musig2_secnonces {nullptr}
 MuSig2 aggregate pubkeys.

Detailed Description

Definition at line 223 of file signingprovider.h.

Member Function Documentation

◆ DeleteMuSig2Session()

void FlatSigningProvider::DeleteMuSig2Session ( const uint256 & session_id) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 138 of file signingprovider.cpp.

◆ GetAllMuSig2ParticipantPubkeys()

std::map< CPubKey, std::vector< CPubKey > > FlatSigningProvider::GetAllMuSig2ParticipantPubkeys ( ) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 117 of file signingprovider.cpp.

◆ GetCScript()

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

Reimplemented from SigningProvider.

Definition at line 81 of file signingprovider.cpp.

Here is the call graph for this function:

◆ GetKey()

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

Reimplemented from SigningProvider.

Definition at line 95 of file signingprovider.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetKeyOrigin()

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

Reimplemented from SigningProvider.

Definition at line 83 of file signingprovider.cpp.

Here is the call graph for this function:

◆ GetMuSig2ParticipantPubkeys()

std::vector< CPubKey > FlatSigningProvider::GetMuSig2ParticipantPubkeys ( const CPubKey & pubkey) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 110 of file signingprovider.cpp.

Here is the call graph for this function:

◆ GetMuSig2SecNonce()

std::optional< std::reference_wrapper< MuSig2SecNonce > > FlatSigningProvider::GetMuSig2SecNonce ( const uint256 & session_id) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 130 of file signingprovider.cpp.

◆ GetPubKey()

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

Reimplemented from SigningProvider.

Definition at line 82 of file signingprovider.cpp.

Here is the call graph for this function:

◆ GetTaprootBuilder()

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

Reimplemented from SigningProvider.

Definition at line 105 of file signingprovider.cpp.

Here is the call graph for this function:

◆ GetTaprootSpendData()

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

Reimplemented from SigningProvider.

Definition at line 96 of file signingprovider.cpp.

Here is the call graph for this function:

◆ HaveKey()

bool FlatSigningProvider::HaveKey ( const CKeyID & keyid) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 90 of file signingprovider.cpp.

Here is the call graph for this function:

◆ Merge()

FlatSigningProvider & FlatSigningProvider::Merge ( FlatSigningProvider && b)

Definition at line 144 of file signingprovider.cpp.

Here is the caller graph for this function:

◆ SetMuSig2SecNonce()

void FlatSigningProvider::SetMuSig2SecNonce ( const uint256 & id,
MuSig2SecNonce && nonce ) const
overridevirtual

Reimplemented from SigningProvider.

Definition at line 122 of file signingprovider.cpp.

Member Data Documentation

◆ aggregate_pubkeys

std::map<CPubKey, std::vector<CPubKey> > FlatSigningProvider::aggregate_pubkeys

Map from output key to Taproot tree (which can then make the TaprootSpendData.

Definition at line 230 of file signingprovider.h.

◆ keys

std::map<CKeyID, CKey> FlatSigningProvider::keys

Definition at line 228 of file signingprovider.h.

◆ musig2_secnonces

std::map<uint256, MuSig2SecNonce>* FlatSigningProvider::musig2_secnonces {nullptr}

MuSig2 aggregate pubkeys.

Definition at line 231 of file signingprovider.h.

◆ origins

std::map<CKeyID, std::pair<CPubKey, KeyOriginInfo> > FlatSigningProvider::origins

Definition at line 227 of file signingprovider.h.

◆ pubkeys

std::map<CKeyID, CPubKey> FlatSigningProvider::pubkeys

Definition at line 226 of file signingprovider.h.

◆ scripts

std::map<CScriptID, CScript> FlatSigningProvider::scripts

Definition at line 225 of file signingprovider.h.

◆ tr_trees

std::map<XOnlyPubKey, TaprootBuilder> FlatSigningProvider::tr_trees

Definition at line 229 of file signingprovider.h.


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