281@@ -282,10 +282,10 @@ class XOnlyPubKey
282 /** Construct a Taproot tweaked output point with this point as internal key. */
283 std::optional<std::pair<XOnlyPubKey, bool>> CreateTapTweak(const uint256* merkle_root) const;
284
285- /** Returns a list of CKeyIDs for the CPubKeys that could have been used to create this XOnlyPubKey.
286+ /** Returns a pair of CKeyIDs for the CPubKeys that could have been used to create this XOnlyPubKey.
287 * This is needed for key lookups since keys are indexed by CKeyID.
288 */
289- std::vector<CKeyID> GetKeyIDs() const;
290+ std::pair<CKeyID, CKeyID> GetKeyIDs() const;
If you instead return std::array<CKeyID, 2>
the data is still on the stack and you don’t need to touch signingprovider.h.