Bitcoin
|
Public Member Functions | |
virtual | ~PubkeyProvider ()=default |
virtual bool | GetPubKey (int pos, const SigningProvider &arg, CPubKey *key, KeyOriginInfo &info) const =0 |
virtual bool | IsRange () const =0 |
virtual size_t | GetSize () const =0 |
virtual std::string | ToString () const =0 |
virtual bool | ToPrivateString (const SigningProvider &arg, std::string &out) const =0 |
virtual bool | GetPrivKey (int pos, const SigningProvider &arg, CKey &key) const =0 |
Interface for public key objects in descriptors.
|
virtualdefault |
|
pure virtual |
Derive a private key, if private data is available in arg.
Implemented in anonymous_namespace{descriptor.cpp}::BIP32PubkeyProvider, anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider, and anonymous_namespace{descriptor.cpp}::OriginPubkeyProvider.
|
pure virtual |
Derive a public key. If key==nullptr, only info is desired.
Implemented in anonymous_namespace{descriptor.cpp}::BIP32PubkeyProvider, anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider, and anonymous_namespace{descriptor.cpp}::OriginPubkeyProvider.
|
pure virtual |
Get the size of the generated public key(s) in bytes (33 or 65).
Implemented in anonymous_namespace{descriptor.cpp}::BIP32PubkeyProvider, anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider, and anonymous_namespace{descriptor.cpp}::OriginPubkeyProvider.
|
pure virtual |
Whether this represent multiple public keys at different positions.
Implemented in anonymous_namespace{descriptor.cpp}::BIP32PubkeyProvider, anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider, and anonymous_namespace{descriptor.cpp}::OriginPubkeyProvider.
|
pure virtual |
Get the descriptor string form including private data (if available in arg).
Implemented in anonymous_namespace{descriptor.cpp}::BIP32PubkeyProvider, anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider, and anonymous_namespace{descriptor.cpp}::OriginPubkeyProvider.
|
pure virtual |
Get the descriptor string form.
Implemented in anonymous_namespace{descriptor.cpp}::BIP32PubkeyProvider, anonymous_namespace{descriptor.cpp}::ConstPubkeyProvider, and anonymous_namespace{descriptor.cpp}::OriginPubkeyProvider.