Skip to content
What happens to your OTP before it reaches you: India's DLT pipeline
3 min read176 views

What happens to your OTP before it reaches you: India's DLT pipeline

Revquix Editorial

You tap "Log in", and a six-digit code arrives two seconds later. It feels like the app sent you a text. In India, that text passed through a regulator-mandated registry, a template check and a sender-chain check before your phone ever buzzed.

A phone receiving a one-time code, with a chain of checked blocks behind it

The scale

Commercial SMS in India is enormous. One industry estimate, quoted by Digit in October 2024, put it at 1.5 to 1.7 billion commercial messages a day. Every one of them is meant to match a record in the same registry.

That registry is called DLT, Distributed Ledger Technology. Under the 2018 framework, businesses that send commercial messages (called Principal Entities) register on the operators' blockchain-based DLT platforms, along with their sender names (headers) and their message templates.

An open ledger linked to a chain of checked blocks, standing for the DLT registry

The path of one OTP

1. The app's server creates the OTP. It calls an SMS aggregator's API with three things: the message, the registered sender name (the header), and the ID of a registered template.

2. The DLT registry already knows that sender and template. The business registered the header and the template on the operators' DLT platform in advance. An OTP template looks like a sentence with a placeholder for the code; the code itself is the only part that changes.

3. Scrubbing. The operator checks the message: is the header valid for this business, and does the text match the registered template? A message that does not match its template is blocked. That is one reason an OTP sometimes never arrives.

A message card under a template stencil, checked with a magnifying glass

4. The chain check. Messages often pass through more than one company between the business and the operator (aggregators and telemarketers). TRAI's traceability rule, set to apply from 11 December 2024, requires that chain to be declared in advance: "any traffic where the chain of telemarketers is not defined or does not match with a pre-defined chain shall be rejected" (as quoted by GASA).

A shop linked to a cell tower through a chain of boxes, with one broken red link

5. Delivery. Once it passes, the operator's SMS centre queues the message and delivers it to your phone, across operators if needed. On many phones, the operating system reads the code and offers to fill it into the app for you.

The receipt at the end of the sender name

Look at the sender of your next OTP. Since about 7 May 2025, MediaNama observed commercial SMS headers carrying a suffix: -T for transactional, -S for service, -P for promotional and -G for government. The -T at the end of your OTP's sender is, in effect, the receipt that it went through this pipeline as a transactional message.

A hand tying a blank tag onto a sealed envelope, like the -T suffix on a sender name

What this means for system design

If an interviewer asks you to "design an OTP service", sending the code is the easy part. The interesting parts are what happens when delivery fails:

A finger pressing a resend button while envelopes pile up beside an hourglass
  • Retries with backoff. If the OTP does not arrive, users press "Resend" again and again. Do not retry instantly; wait a little longer before each retry, so a slow path does not turn into a pile of duplicate codes.

  • Rate limits per user and per number. Without them, the resend button becomes a way to flood someone's phone, and a cost you pay per message.

  • Fallback channels. If SMS fails, offer another channel such as WhatsApp or a voice call.

  • Store only a hash. Keep a hash of the OTP, not the code itself, give it a short expiry, and count wrong attempts.

The one-line interview answer: an OTP service is not "send a code". It is delivery, retries, rate limits and fallback, designed together.

Sources

  • Digit, "TRAI mandates SMS monitoring", 24 October 2024 (the 1.5 to 1.7 billion daily estimate, unattributed there, and the note that OTPs may be delayed).

  • GASA, "Fighting cyber fraud in India: a closer look at TRAI's new message traceability guidelines" (the 2018 DLT framework and the quoted traceability rule).

  • MediaNama, May 2025, on the -T/-S/-P/-G suffixes under the amended TCCCPR.

Practise system design interviews with working engineers on Revquix: www.revquix.com/marketplace

© 2026 Revquix. All rights reserved.

Learn with a mentor

Top-rated mentors on Revquix, ready for a 1:1 session.

Browse all mentors

Keep reading