We develop the formalism of supersymmetric localization in supergravity using
the deformed BRST algebra defined in the presence of a supersymmetric
background as recently formulated in arxiv:1806.03690. The gravitational
functional integral localizes onto the cohomology of a global supercharge
Qeq​, obeying Qeq2​=H, where H is a global symmetry of the
background. Our construction naturally produces a twisted version of
supergravity whenever supersymmetry can be realized off-shell. We present the
details of the twisted graviton multiplet and ghost fields for the
superconformal formulation of four-dimensional N=2 supergravity. As an
application of our formalism, we systematize the computation of the exact
quantum entropy of supersymmetric black holes. In particular, we compute the
one-loop determinant of the Qeq​V deformation operator for
the off-shell fluctuations of the Weyl multiplet around the AdS2​×S2
saddle. This result, which is consistent with the corresponding large-charge
on-shell analysis, is needed to complete the first-principles computation of
the quantum entropy.Comment: V2: subsection 4.3 added, typo corrected, accepted version in JHEP;
V3: typos correcte