VeriFactu Concepts
VeriFactu · Concepts
VeriFactu Concepts
Section titled “VeriFactu Concepts”Understanding the core concepts of the VeriFactu system.
Records (Registros)
Section titled “Records (Registros)”VeriFactu has three types of records:
| Type | Description | Use Case |
|---|---|---|
Alta | Initial registration | New invoice issued |
Modificación | Modification | Correct an error |
Anulación | Cancellation | Void an invoice |
Hash Chain (Cadena de Huellas)
Section titled “Hash Chain (Cadena de Huellas)”Every VeriFactu record contains a Huella (fingerprint) that cryptographically links to the previous record.
Record 1: Hash(data1) → Huella1Record 2: Hash(data2 + Huella1) → Huella2Record 3: Hash(data3 + Huella2) → Huella3This creates an immutable audit trail.
Digital Signatures
Section titled “Digital Signatures”Each record must be signed with:
- X.509 certificate — Issued by a Spanish CAM
- XMLDSig — W3C standard for XML signatures
- RSA-SHA256 — Signature algorithm
AEAT Response
Section titled “AEAT Response”After submission, AEAT returns:
CSV(Código Seguro de Verificación) — Unique record identifierTimestamp— Official registration timeStatus— Aceptado, Rechazado, or Pendiente