From 9b2a25b13f81a45ff59a6a4adde595404a6c062a Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sat, 13 Oct 2018 10:45:15 -0700 Subject: Add tests for InferDescriptor and Descriptor::IsSolvable --- src/script/sign.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/script') diff --git a/src/script/sign.h b/src/script/sign.h index 689501269d..3cbf402764 100644 --- a/src/script/sign.h +++ b/src/script/sign.h @@ -24,6 +24,11 @@ struct KeyOriginInfo { unsigned char fingerprint[4]; std::vector 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. */ -- cgit v1.2.3