Bitcoin
Public Member Functions | Private Attributes | List of all members
anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider Class Referencefinal
Inheritance diagram for anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider:
anonymous_namespace{descriptor.cpp}::PubkeyProvider

Public Member Functions

 ConstPubkeyProvider (const CPubKey &pubkey)
 
bool GetPubKey (int pos, const SigningProvider &arg, CPubKey *key, KeyOriginInfo &info) const override
 
bool IsRange () const override
 
size_t GetSize () const override
 
std::string ToString () const override
 
bool ToPrivateString (const SigningProvider &arg, std::string &ret) const override
 
bool GetPrivKey (int pos, const SigningProvider &arg, CKey &key) const override
 
- Public Member Functions inherited from anonymous_namespace{descriptor.cpp}::PubkeyProvider
virtual ~PubkeyProvider ()=default
 

Private Attributes

CPubKey m_pubkey
 

Detailed Description

An object representing a parsed constant public key in a descriptor.

Constructor & Destructor Documentation

◆ ConstPubkeyProvider()

anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider::ConstPubkeyProvider ( const CPubKey pubkey)
inline

Member Function Documentation

◆ GetPrivKey()

bool anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider::GetPrivKey ( int  pos,
const SigningProvider arg,
CKey key 
) const
inlineoverridevirtual

Derive a private key, if private data is available in arg.

Implements anonymous_namespace{descriptor.cpp}::PubkeyProvider.

◆ GetPubKey()

bool anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider::GetPubKey ( int  pos,
const SigningProvider arg,
CPubKey key,
KeyOriginInfo info 
) const
inlineoverridevirtual

Derive a public key. If key==nullptr, only info is desired.

Implements anonymous_namespace{descriptor.cpp}::PubkeyProvider.

◆ GetSize()

size_t anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider::GetSize ( ) const
inlineoverridevirtual

Get the size of the generated public key(s) in bytes (33 or 65).

Implements anonymous_namespace{descriptor.cpp}::PubkeyProvider.

◆ IsRange()

bool anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider::IsRange ( ) const
inlineoverridevirtual

Whether this represent multiple public keys at different positions.

Implements anonymous_namespace{descriptor.cpp}::PubkeyProvider.

◆ ToPrivateString()

bool anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider::ToPrivateString ( const SigningProvider arg,
std::string &  out 
) const
inlineoverridevirtual

Get the descriptor string form including private data (if available in arg).

Implements anonymous_namespace{descriptor.cpp}::PubkeyProvider.

◆ ToString()

std::string anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider::ToString ( ) const
inlineoverridevirtual

Get the descriptor string form.

Implements anonymous_namespace{descriptor.cpp}::PubkeyProvider.

Member Data Documentation

◆ m_pubkey

CPubKey anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider::m_pubkey
private

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