The SignatureHash and SignatureHashSchnorr function templates are defined in interpreter.cpp but are also used from other translation units, which have relied on implicit instantiations being emitted in that file. The standard does not guarantee that.
This PR adds the missing explicit instantiations. It fixes linker errors (see the nightly builds with libstdc++ and libc++) when building with Clang 24, where module-local optimizer hints are now enabled by default. The change was introduced in https://github.com/llvm/llvm-project/pull/238529.
A successful build of this branch with Clang 24 is available here: https://github.com/hebasto/bitcoin-core-nightly/pull/496.
As a workaround, Clang's previous behavior can be restored with the -fno-module-local-hints flag.