![]() |
Bitcoin Core
25.99.0
P2P Digital Currency
|
Public Member Functions | |
DummyDescriptor (const std::string &descriptor) | |
~DummyDescriptor ()=default | |
std::string | ToString () const override |
Convert the descriptor back to a string, undoing parsing. More... | |
std::optional< OutputType > | GetOutputType () const override |
bool | IsRange () const override |
Whether the expansion of this descriptor depends on the position. More... | |
bool | IsSolvable () const override |
Whether this descriptor has all information about signing ignoring lack of private keys. More... | |
bool | IsSingleType () const override |
Whether this descriptor will return one scriptPubKey or multiple (aka is or is not combo) More... | |
bool | ToPrivateString (const SigningProvider &provider, std::string &out) const override |
Convert the descriptor to a private string. More... | |
bool | ToNormalizedString (const SigningProvider &provider, std::string &out, const DescriptorCache *cache=nullptr) const override |
Convert the descriptor to a normalized string. More... | |
bool | Expand (int pos, const SigningProvider &provider, std::vector< CScript > &output_scripts, FlatSigningProvider &out, DescriptorCache *write_cache=nullptr) const override |
Expand a descriptor at a specified position. More... | |
bool | ExpandFromCache (int pos, const DescriptorCache &read_cache, std::vector< CScript > &output_scripts, FlatSigningProvider &out) const override |
Expand a descriptor at a specified position using cached expansion data. More... | |
void | ExpandPrivate (int pos, const SigningProvider &provider, FlatSigningProvider &out) const override |
Expand the private key for a descriptor at a specified position, if possible. More... | |
![]() | |
virtual | ~Descriptor ()=default |
Private Attributes | |
std::string | desc |
Definition at line 15 of file walletload_tests.cpp.
|
inlineexplicit |
Definition at line 19 of file walletload_tests.cpp.
|
default |
|
inlineoverridevirtual |
Expand a descriptor at a specified position.
[in] | pos | The position at which to expand the descriptor. If IsRange() is false, this is ignored. |
[in] | provider | The provider to query for private keys in case of hardened derivation. |
[out] | output_scripts | The expanded scriptPubKeys. |
[out] | out | Scripts and public keys necessary for solving the expanded scriptPubKeys (may be equal to provider ). |
[out] | write_cache | Cache data necessary to evaluate the descriptor at this point without access to private keys. |
Implements Descriptor.
Definition at line 30 of file walletload_tests.cpp.
|
inlineoverridevirtual |
Expand a descriptor at a specified position using cached expansion data.
[in] | pos | The position at which to expand the descriptor. If IsRange() is false, this is ignored. |
[in] | read_cache | Cached expansion data. |
[out] | output_scripts | The expanded scriptPubKeys. |
[out] | out | Scripts and public keys necessary for solving the expanded scriptPubKeys (may be equal to provider ). |
Implements Descriptor.
Definition at line 31 of file walletload_tests.cpp.
|
inlineoverridevirtual |
Expand the private key for a descriptor at a specified position, if possible.
[in] | pos | The position at which to expand the descriptor. If IsRange() is false, this is ignored. |
[in] | provider | The provider to query for the private keys. |
[out] | out | Any private keys available for the specified pos . |
Implements Descriptor.
Definition at line 32 of file walletload_tests.cpp.
|
inlineoverridevirtual |
Implements Descriptor.
Definition at line 23 of file walletload_tests.cpp.
|
inlineoverridevirtual |
Whether the expansion of this descriptor depends on the position.
Implements Descriptor.
Definition at line 25 of file walletload_tests.cpp.
|
inlineoverridevirtual |
Whether this descriptor will return one scriptPubKey or multiple (aka is or is not combo)
Implements Descriptor.
Definition at line 27 of file walletload_tests.cpp.
|
inlineoverridevirtual |
Whether this descriptor has all information about signing ignoring lack of private keys.
This is true for all descriptors except ones that use raw
or addr
constructions.
Implements Descriptor.
Definition at line 26 of file walletload_tests.cpp.
|
inlineoverridevirtual |
Convert the descriptor to a normalized string.
Normalized descriptors have the xpub at the last hardened step. This fails if the provided provider does not have the private keys to derive that xpub.
Implements Descriptor.
Definition at line 29 of file walletload_tests.cpp.
|
inlineoverridevirtual |
Convert the descriptor to a private string.
This fails if the provided provider does not have the relevant private keys.
Implements Descriptor.
Definition at line 28 of file walletload_tests.cpp.
|
inlineoverridevirtual |
Convert the descriptor back to a string, undoing parsing.
Implements Descriptor.
Definition at line 22 of file walletload_tests.cpp.
|
private |
Definition at line 17 of file walletload_tests.cpp.