Add tests for InferDescriptor and Descriptor::IsSolvable

This commit is contained in:
Pieter Wuille
2018-10-13 10:45:15 -07:00
parent 225bf3e3b0
commit 9b2a25b13f
2 changed files with 17 additions and 0 deletions

View File

@@ -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. */