Add Descriptor::IsSolvable() to distinguish addr/raw from others

This commit is contained in:
Pieter Wuille
2018-10-12 18:27:00 -07:00
parent 4d78bd93b5
commit 225bf3e3b0
2 changed files with 11 additions and 0 deletions

View File

@@ -32,6 +32,10 @@ struct Descriptor {
/** Whether the expansion of this descriptor depends on the position. */
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. */
virtual std::string ToString() const = 0;