Changeset View
Changeset View
Standalone View
Standalone View
src/script/descriptor.h
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | struct Descriptor { | ||||
* `raw` or `addr` constructions. | * `raw` or `addr` constructions. | ||||
*/ | */ | ||||
virtual bool IsSolvable() const = 0; | 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; | ||||
/** | /** | ||||
* Whether this descriptor will return one scriptPubKey or multiple (aka is | |||||
* or is not combo) | |||||
*/ | |||||
virtual bool IsSingleType() 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, | ||||
std::string &out) const = 0; | std::string &out) const = 0; | ||||
/** | /** | ||||
* Expand a descriptor at a specified position. | * Expand a descriptor at a specified position. | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |