EVENTFLOW FE · TECHNICAL DOCUMENTATION · 06
Security & Document Integrity
Defines the public integrity controls applied to the electronic fiscal document before the applicable SIFEN submission path.
Integrity boundary
Document integrity is established before the applicable fiscal submission path.
EventFlow FE applies the configured document-integrity stages to the electronic fiscal representation before fiscal interoperability. These stages include digital signing and QR generation as required by the product’s fiscal processing path.
Integrity stages
Control model
| Control | Product state | Meaning |
|---|---|---|
| Electronic document generation | XML_GENERADO | The electronic fiscal representation has been produced |
| Digital signing | FIRMADO | The configured signing operation has completed successfully |
| QR generation | QR_GENERADO | The QR information required by the fiscal process has been generated |
| Signing failure | ERROR_FIRMA | The configured signing stage did not complete successfully |
| QR failure | ERROR_QR | The QR generation stage did not complete successfully |
Digital signing
Digital signing operates on the generated electronic fiscal representation. Successful completion is represented by FIRMADO; an unsuccessful signing operation is represented separately by ERROR_FIRMA.
Signing completion establishes completion of the configured integrity stage. It does not represent submission to SIFEN or fiscal approval.
QR generation
QR generation follows the applicable electronic document preparation path and produces the QR information associated with the fiscal document. Successful completion is represented by QR_GENERADO; failure is represented by ERROR_QR.
QR generation is a document-processing stage and does not constitute a fiscal authority outcome.
Ordering constraints
The electronic fiscal representation is generated before signing. Signing completes before QR generation, and the configured integrity path completes before the document enters the applicable fiscal submission stage.
The lifecycle representation of these stages is specified in 04. Document Lifecycle.
Failure separation
An integrity failure is not a transport failure or a fiscal rejection.
ERROR_FIRMA and ERROR_QR identify failures inside the document-integrity path. Communication failures belong to fiscal interoperability, while fiscal rejection represents an authority outcome.
Integrity invariants
- The electronic fiscal representation exists before the signing stage completes.
FIRMADOrepresents signing completion, not fiscal approval.QR_GENERADOrepresents QR-generation completion, not an authority result.- Integrity failures remain distinct from communication failures and fiscal outcomes.
- The completed integrity path precedes the applicable fiscal submission path.
- Runtime observation does not perform fiscal document signing or QR generation.
Interoperability boundary
Document integrity preparation completes before the applicable SIFEN interaction. Submission, authority consultation and fiscal response handling are specified in 05. SIFEN Interoperability.
Production validation
The production validation path includes successful electronic document generation, digital signing and QR generation before SIFEN submission. The corresponding end-to-end evidence is documented in 12. Production Validation.