Throw an error if a wrong public key is used to verify a signature.