Change isIdentityCertificate(const Data& data) to isIdentityCertificate(const Certificate& certificate);