diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2018-10-12 18:27:00 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2018-10-26 10:21:05 -0700 |
commit | 225bf3e3b0a89a285da451cd589be148324039ab (patch) | |
tree | 6718332c2f3be44a8e30122770fea7d6b5faa960 /src/script/descriptor.h | |
parent | 4d78bd93b5bdf886e743022e80f4edb8a982cf0d (diff) |
Add Descriptor::IsSolvable() to distinguish addr/raw from others
Diffstat (limited to 'src/script/descriptor.h')
-rw-r--r-- | src/script/descriptor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/descriptor.h b/src/script/descriptor.h index e44a6ef3c3..0111972f85 100644 --- a/src/script/descriptor.h +++ b/src/script/descriptor.h @@ -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; |