Changeset View
Changeset View
Standalone View
Standalone View
src/script/descriptor.h
Show All 26 Lines | |||||
/** Interface for parsed descriptor objects. */ | /** Interface for parsed descriptor objects. */ | ||||
struct Descriptor { | struct Descriptor { | ||||
virtual ~Descriptor() = default; | virtual ~Descriptor() = default; | ||||
/** Whether the expansion of this descriptor depends on the position. */ | /** Whether the expansion of this descriptor depends on the position. */ | ||||
virtual bool IsRange() const = 0; | virtual bool IsRange() const = 0; | ||||
/** | |||||
* 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. | |||||
*/ | |||||
virtual bool IsSolvable() const = 0; | |||||
/** Convert the descriptor back to a string, undoing parsing. */ | /** Convert the descriptor back to a string, undoing parsing. */ | ||||
virtual std::string ToString() const = 0; | virtual std::string ToString() const = 0; | ||||
/** | /** | ||||
* Convert the descriptor to a private string. This fails if the provided | * Convert the descriptor to a private string. This fails if the provided | ||||
* provider does not have the relevant private keys. | * provider does not have the relevant private keys. | ||||
*/ | */ | ||||
virtual bool ToPrivateString(const SigningProvider &provider, | virtual bool ToPrivateString(const SigningProvider &provider, | ||||
Show All 26 Lines |