diff options
| author | Pieter Wuille <[email protected]> | 2018-10-13 10:45:15 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2018-10-26 10:21:05 -0700 |
| commit | 9b2a25b13f81a45ff59a6a4adde595404a6c062a (patch) | |
| tree | f2035f603310c78274f872bd15245ecbe4ef6c56 /src/script | |
| parent | Add Descriptor::IsSolvable() to distinguish addr/raw from others (diff) | |
| download | discoin-9b2a25b13f81a45ff59a6a4adde595404a6c062a.tar.xz discoin-9b2a25b13f81a45ff59a6a4adde595404a6c062a.zip | |
Add tests for InferDescriptor and Descriptor::IsSolvable
Diffstat (limited to 'src/script')
| -rw-r--r-- | src/script/sign.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/sign.h b/src/script/sign.h index 689501269..3cbf40276 100644 --- a/src/script/sign.h +++ b/src/script/sign.h @@ -24,6 +24,11 @@ struct KeyOriginInfo { unsigned char fingerprint[4]; std::vector<uint32_t> path; + + friend bool operator==(const KeyOriginInfo& a, const KeyOriginInfo& b) + { + return std::equal(std::begin(a.fingerprint), std::end(a.fingerprint), std::begin(b.fingerprint)) && a.path == b.path; + } }; /** An interface to be implemented by keystores that support signing. */ |