Bitcoin
|
Public Member Functions | |
MultisigDescriptor (int threshold, std::vector< std::unique_ptr< PubkeyProvider >> providers) | |
![]() | |
DescriptorImpl (std::vector< std::unique_ptr< PubkeyProvider >> pubkeys, std::unique_ptr< DescriptorImpl > script, const std::string &name) | |
bool | IsSolvable () const override |
bool | IsRange () const final |
bool | ToStringHelper (const SigningProvider *arg, std::string &out, bool priv) const |
std::string | ToString () const final |
bool | ToPrivateString (const SigningProvider &arg, std::string &out) const override final |
bool | ExpandHelper (int pos, const SigningProvider &arg, Span< const unsigned char > *cache_read, std::vector< CScript > &output_scripts, FlatSigningProvider &out, std::vector< unsigned char > *cache_write) const |
bool | Expand (int pos, const SigningProvider &provider, std::vector< CScript > &output_scripts, FlatSigningProvider &out, std::vector< unsigned char > *cache=nullptr) const final |
bool | ExpandFromCache (int pos, const std::vector< unsigned char > &cache, std::vector< CScript > &output_scripts, FlatSigningProvider &out) const final |
void | ExpandPrivate (int pos, const SigningProvider &provider, FlatSigningProvider &out) const final |
![]() | |
virtual | ~Descriptor ()=default |
Protected Member Functions | |
std::string | ToStringExtra () const override |
Return a serialization of anything except pubkey and script arguments, to be prepended to those. More... | |
std::vector< CScript > | MakeScripts (const std::vector< CPubKey > &keys, const CScript *, FlatSigningProvider &) const override |
Private Attributes | |
const int | m_threshold |
A parsed multi(...) descriptor.
|
inline |
|
inlineoverrideprotectedvirtual |
A helper function to construct the scripts for this descriptor.
This function is invoked once for every CScript produced by evaluating m_script_arg, or just once in case m_script_arg is nullptr.
pubkeys | The evaluations of the m_pubkey_args field. |
script | The evaluation of m_script_arg (or nullptr when m_script_arg is nullptr). |
out | A FlatSigningProvider to put scripts or public keys in that are necessary to the solver. The script arguments to this function are automatically added, as is the origin info of the provided pubkeys. |
Implements anonymous_namespace{descriptor.cpp}::DescriptorImpl.
|
inlineoverrideprotectedvirtual |
Return a serialization of anything except pubkey and script arguments, to be prepended to those.
Reimplemented from anonymous_namespace{descriptor.cpp}::DescriptorImpl.
|
private |