Fiscal architecture · from module to equipment

The S-MDF, the sequence, and why the answer stopped being software

Two terms cause more confusion in this programme than everything else combined: online and offline. They are read as "connected" and "disconnected", which is close enough to be wrong. Both are certified. Both synchronise. Both require an identifier per transaction. What separates them is when the identifier was obtained - and understanding that is what makes the move to equipment legible instead of arbitrary.

1 · what the S-MDF actually is

A data integration module, not a signing utility

It is easy to read the S-MDF as "the thing that signs". In a real deployment it is the layer that integrates: it sits between the till software and the authority, receives the transaction, resolves its identity, calculates its place in the sequence, produces the signature, and keeps what has not yet been accounted for.

receives

The transaction, from the till

The schema of the sale as the till software declares it: lines, totals, transaction type. The module integrates that structure; it does not author it.

resolves

An identifier, per transaction

Every ticket is anchored to a unique identifier. One per transaction, never reused, and its origin is the platform rather than the module.

calculates

The sequence, itself

The module computes the sequence. It is not handed a position; it holds the counters, advances them, and stores their value at each cloture. Counters never return to zero.

That third one is the load-bearing distinction. The identifier comes from the authority; the sequence is the module's own arithmetic. So a ticket carries two independent facts about its place in the world: one the authority minted, and one the module counted. A discrepancy between them is not a formatting error, it is a reconciliation event.
2 · the confusion worth ending

Online and offline: what is identical, and what is not

Rows shaded green are the same in both modes. That is most of the table, which is exactly why the two terms get muddled - and why treating offline as a degraded or unsupervised mode is a misreading.

Mode ONLINEMode OFFLINE
CertifiedYes - the module is certifiedYes - the same module, the same certificate
SynchronisesWith the data integration moduleWith the data integration module, locally
Identifier requiredOne per transactionOne per transaction
SequenceCalculated by the S-MDF itselfCalculated by the S-MDF itself
Signature keyThe taxpayer'sThe taxpayer's
Identifier obtainedAt the moment of sale, from the platformIn advance, from the last batch retrieved
Ticket deliveredImmediately to the platformCached locally, transmitted at the next connection
Depends on the networkAt every single paymentOnly at batch renewal
QR first lineONLINEOFFLINE
Bound byNothing - it is liveAvailable tickets remaining, and time since sync
Offline is not "unsupervised". It is "pre-authorised". Five of the ten properties are byte-identical, including certification and the sequence. The single real difference is the moment the identifier was drawn - and everything people find alarming about offline follows from that one shift, not from any loosening of the scheme.
3 · the pivotal role

You manifest yourself, and you check your own state

In software mode the authority closed the network gap with a small cache held per module. That cache is what makes the S-MDF pivotal rather than incidental: while disconnected, it is simultaneously the issuer of record, the ledger and the state machine.

what the module holds while offline

The cache

  • Every ticket generated offline, encrypted
  • Their schema, as declared by the till
  • The identifiers consumed, each bound to its ticket
  • The range of available tickets remaining in the batch
  • Counters, advancing, never reset
what it can answer without a network

The manifest

  • Who am I - the module identity
  • What state am I in - synchronised, suspended, not synchronised, maintenance
  • How much authority is left - available tickets
  • What do I owe - what has been signed and not yet transmitted
  • Is my certificate still the one I was issued
This is the property that makes the design honest. A device that keeps working offline and cannot describe its own position is a black box. One that can be asked - and answers with a remaining budget, a state and an outstanding debt - is a participant that happens to be temporarily out of contact. The manifest is the difference between the two, and it costs a single call.
4 · the change

What if the network should not exist at all?

Software mode assumes the network is usually there and occasionally absent. Two realities break that assumption, and neither is exotic.

by geography

The zone is not covered

Rural taxpayers, valleys, interior regions, markets. Not an outage to be ridden out - the normal condition. A scheme that treats permanent disconnection as an exception has excluded a part of the economy by design.

by choice

The network is the risk

Some taxpayers should not carry a live path between their point of sale and anything outside. Connectivity is an attack surface; removing it is a legitimate security posture, not obstruction. Offloading the network is a requirement, not a preference.

This is where the Target of Evaluation appears, and why it changes shape. If the network may be permanently absent, the functions that lived at the centre have to live at the edge. Not distributed differently - collapsed into one thing, and that thing is no longer software running on somebody's till. It is equipment.
5 · the collapse

Four roles become one component

SOFTWARE MODE · FOUR PARTIES Plateforme generale mints identifiers, reconciles Gateway carries, holds nothing S-MDF agent (SIC) coordinates tills, requests the certificate S-MDF client integrates, sequences, signs, caches COLLAPSE EQUIPMENT MODE · ONE COMPONENT TOE — the equipment serves · counts · audits · signs Cache offline tickets, schemas, identifiers, available range Cryptographic storage the identity key, sealed. Never leaves the component. Storage the journal, the counters, the archive awaiting collection encrypted at rest, readable only through the component itself
The equipment absorbs the roles; it does not merely host them. It calculates the sequence, provides the hashes, signs the ticket legally, and stores what it produced - and it does all four without asking anything outside itself for permission. That is what makes permanent disconnection survivable rather than merely tolerated.
6 · two different compliances, and people conflate them

NACEF is homologation. TradeNet is conformity.

NACEF

Homologation

  • A dossier, test scenarios, a passage before the instance
  • May require several compliances underneath it
  • The subject is the product: does this till solution behave as specified
El-Fatoora · TradeNet

Conformity

  • A different process entirely, not homologation
  • Reaches taxpayers as natural persons and service providers
  • The subject is the act: is this invoice legally signed by this identity

And here is the thing worth carrying across, because it is the same mechanism arriving from the other direction: in the El-Fatoora flow the authority obliges a key that encapsulates the certification of user identity together with its metadata, so the taxpayer legally signs their own invoices and receipts.

the concrete example

El-Fatoora already applies the cryptographic half, through a TunTrust key

A taxpayer signing an electronic invoice does not hold an anonymous key pair. They hold a certificate issued by the national certification authority, TunTrust, which binds their legal identity to the key and carries the metadata that says who they are. Signing an invoice with it is not a technical gesture, it is a legal act attributable to a named person or company.

That is exactly the cryptographic part the equipment carries internally. El-Fatoora proves the mechanism works at national scale on the B2B side, with the key held by the taxpayer. The TOE takes the same idea and seals it inside the component, so the till case gets a legally attributable signature without depending on a live path to anything at the moment of signing. Same trust anchor, different custody.

That is cryptographic storage, and it is precisely the difference between the equipment and the software module. A software MDF integrates, sequences and signs - but the identity it signs with lives somewhere it does not control. The equipment carries the sealed key as part of itself. So the equipment covers the roles of the MDF, the agent and the client cumulatively with the cryptographic storage: it calculates the sequence, provides the hashes, signs the ticket legally, and stores it. One component, one custody chain, no external dependency at the moment of signing.
7 · the access model

The fiscal kernel console — retrieving identifiers securely from the local embedded TOE

To reach the E-MDF you have to be trusted, and trust here is not a role or a password. It is a fiscal kernel layer standing between the caller and the equipment, authorised by a trusted certificate, and that authorisation is what guarantees the retrieval from the TOE is correct: the right identifiers, the right sequence, out of the right component, unaltered on the way.

Without that layer there is no safe read at all. The equipment holds the cache, the storage and the sealed key, and something has to reach them for an audit, for a control, for the taxpayer's own accounting. The three rules below are the whole security argument, and the console beneath them enforces each one.

1

Access is possible only while the equipment is present

Not a copy of its data, not a mirror, not a cached credential. The component must be physically there and answering. Absent equipment means no access, which is a refusal rather than a fallback.

2

Access is granted by the key identity itself, through a trusted certificate

The same sealed identity that signs is what unlocks the read, and the kernel layer presents a trusted certificate to be admitted at all. Nothing outside the component can authorise a read of what is inside it - which is what makes the boundary real rather than drawn, and what makes the retrieved identifiers trustworthy rather than merely returned.

3

What you recover is your own data

The taxpayer reads their own journal, their own counters, their own tickets. The console is not a privileged back door; it is the ordinary front door, and it happens to be the only one.

The property this delivers to the customer is not convenience. It is assurance: because the identity that unlocks the store is the identity that signs, a taxpayer who can read their journal at all has thereby demonstrated that their receipts were signed legally, by them. The read and the signature stand or fall together.

Below: the general architecture. A console session against the equipment, written as it behaves rather than as any one product implements it.

fiscal kernel console · equipment IMDF-4K7Q2XR8M31C
kernel>

Illustrative architecture only. It describes the access model implied by sealed cryptographic storage - presence, identity-based unlock, own-data scope, nothing retained by the host - rather than the interface of any product. No implementation was examined to produce it.

8 · what this gives back

The economy that could not be reached becomes reachable

for the rural taxpayer

Compliance without coverage

No line to the outside, and still a legally signed receipt, a continuous sequence and an archive the authority can collect. Participation stops depending on infrastructure that is not coming.

for the cautious taxpayer

Offloading the network as a posture

Removing connectivity from the point of sale becomes compatible with compliance instead of opposed to it. The security-conscious merchant is no longer the awkward case.

for the authority

Attention, not gatekeeping

Identifiers issued against identifiers returned, sequences continuous or not, packages arriving or missing. The centre stops trying to be present at every sale and starts looking at what came back.

Everything on this page is read from the published specification or stated from field practice, and the kernel session is an architectural illustration rather than a product interface. Deterministic throughout: no model, no network, no random.