5 #ifndef BITCOIN_SCRIPT_DESCRIPTOR_H 6 #define BITCOIN_SCRIPT_DESCRIPTOR_H 33 virtual bool IsRange()
const = 0;
36 virtual std::string
ToString()
const = 0;
54 #endif // BITCOIN_SCRIPT_DESCRIPTOR_H
std::unique_ptr< Descriptor > Parse(const std::string &descriptor, FlatSigningProvider &out)
Parse a descriptor string.
virtual ~Descriptor()=default
virtual std::string ToString() const =0
Convert the descriptor back to a string, undoing parsing.
virtual bool Expand(int pos, const SigningProvider &provider, std::vector< CScript > &output_scripts, FlatSigningProvider &out) const =0
Expand a descriptor at a specified position.
An interface to be implemented by keystores that support signing.
virtual bool IsRange() const =0
Whether the expansion of this descriptor depends on the position.
virtual bool ToPrivateString(const SigningProvider &provider, std::string &out) const =0
Convert the descriptor to a private string.
Interface for parsed descriptor objects.