What it is
A digital signature in the e-invoicing context is a cryptographic artefact bound to an invoice that proves two things at the same time: the invoice was issued by the entity it claims to be from (authenticity of origin), and it has not been altered since signing (integrity of content). The same two requirements appear verbatim in EU VAT Directive 2006/112/EC, Article 233, which is the legal anchor every Member State implements in its own way.
Under eIDAS (Regulation (EU) 910/2014), an electronic signature can be one of three levels:
Signature formats ERP developers actually encounter
ETSI defines four AdES baseline profiles, each suited to a different carrier:
.xml.p7m is a CAdES-BES container wrapping the XML.Each profile has "levels" stacked on top: -BES (basic), -T (with timestamp), -LT (long-term, with revocation data), and -LTA (with archival timestamps). Mandates typically require at minimum the -T level so the signature can be validated long after the certificate expires.
Where signatures are mandatory in Europe
FatturaElettronica element.Peppol BIS Billing 3.0 does not require an invoice-level signature — Peppol relies on transport-level security (mTLS with eDelivery) between Access Points, plus signed message-level metadata. EN 16931 likewise treats the signature as optional and out of scope.
How an ERP usually implements it
For a typical mid-sized ERP that needs to sign Italian FatturaPA, the moving parts are: a qualified signing certificate (HSM, smart card, or remote QSCD); a XAdES library (Apache Santuario, xades4j, .NET CryptoXMLSign extensions, or DSS from EU's CEF Digital); the canonicalisation algorithm (xml-exc-c14n#); the digest algorithm (SHA-256 minimum since 2016); and validated reference URIs that point to either the document root or a fragment ID. Common implementation pitfalls include double-canonicalisation, wrong namespace declarations on the Reference element, missing KeyInfo/X509Certificate, and clock drift on the timestamp.
Relation to EN 16931
EN 16931 is a semantic and syntactic standard for the structured invoice data; it intentionally does not define how authenticity and integrity must be proven. Member States choose the means: signature, mandated platform clearance, business-controls model, EDI agreement, or some combination. So when a CTC country requires a signature, it is layered on top of EN 16931 conformance, not in conflict with it.