tests: Check ExpandPrivate matches for both parsed descriptors

This commit is contained in:
Ava Chow
2025-01-01 23:52:33 -05:00
parent 092569e858
commit 4c50c21f6b
2 changed files with 20 additions and 0 deletions

View File

@@ -136,6 +136,8 @@ public:
std::vector<std::tuple<uint8_t, uint8_t, std::vector<unsigned char>>> GetTreeTuples() const;
/** Returns true if there are any tapscripts */
bool HasScripts() const { return !m_branch.empty(); }
bool operator==(const TaprootBuilder& other) const { return GetTreeTuples() == other.GetTreeTuples(); }
};
/** Given a TaprootSpendData and the output key, reconstruct its script tree.