The ultra-compact, cryptographic data transport & identity layer
DTL (Domain Transport Language) combines ultra-compact serialization, cryptographic security, and Web3 integration for AI systems, critical infrastructure, and decentralized identity. Now with Enum types for exact-match validation.
@dtlv1.0^dtHC^pMedical^c0^s1^w0^hash
@sec^blake3^0x0^none^0
# Patient table with enum fields
PATIENT|id:s,name:s,gender:e(M,F,O),
blood:e(A+,A-,B+,B-,O+,O-)|2|S1|W0|C0
P001|Ahmed Ali|M|O+
P002|Sara Khan|F|A-
DTL Structure
Ultra-compact format with embedded schema, enum validation, and cryptographic security
Grammar Definition
header-1 NEWLINE
header-2 NEWLINE
table+
name ":" type
type =
s | i | f | b | D | T|
e(val,...) | a(type)
e( value ("," value)* )Exact match validation only
Type System
Simple, powerful types with schema validation. Now with Enum support!
Enum Type Examples
The e(val1,val2,...) type enforces exact-match validation
# Gender enum - only M, F, or O allowed PATIENT|id:s,name:s,gender:e(M,F,O)|2|S1|W0|C0 P001|John Doe|M P002|Jane Smith|F # Blood type enum - strict medical coding BLOOD|patient:s,type:e(A+,A-,B+,B-,AB+,AB-,O+,O-)|2|S1|W0|C0 P001|O+ P002|A- # Status enum - workflow states ORDERS|id:s,customer:s,status:e(pending,processing,shipped,delivered,cancelled)|3|S0|W0|C0 ORD001|Alice|pending ORD002|Bob|shipped ORD003|Carol|delivered # Currency enum - finance applications TRANSACTIONS|id:s,amount:f,currency:e(USD,EUR,AED,GBP,JPY)|2|S2|W1|C0 TXN001|5000.00|AED TXN002|1250.50|USD # Role enum - access control USERS|id:s,name:s,role:e(admin,user,guest,moderator),active:b|2|S0|W0|C0 U001|Padam|admin|1 U002|Guest User|guest|1
Real-World Example
Complete DTL file with enum types, cryptographic signatures, and blockchain anchoring
@dtlv1.0^dtHC^pAsterERB1^c3^s1^w1^hb3 @sec^fh7d3a1c92f0aa^wa0xABCDEF1234^sg0x123456abc^chZC01 # Patient records with enum validation PATIENT|id:s,name:s,gender:e(M,F,O),dob:D,blood:e(A+,A-,B+,B-,AB+,AB-,O+,O-)|4|S1|W0|C3 P001|Ahmed Ashraf|M|2014-05-01|O+ P002|Pabal Sharma|M|2010-03-10|B+ P003|Hillan Daban|F|2006-01-20|A- P004|Gima Gillimar|F|2000-01-11|AB+ # Triage with CTAS priority enum TRIAGE|tid:s,patient_id:s,ctas:e(1,2,3,4,5),diag:a(s),notes:s|4|S1|W2|C3 T001|P001|3|R50.9,J20.9|Fever and tachycardia T002|P002|2|J20.9|Acute cough - urgent T003|P003|4|R50.9,J20.9|Fever, stable T004|P004|5|J20.9|Minor symptoms # Blockchain anchoring CHAIN|target:s,chain:s,txid:s|1|S0|W0|C0 FILE|ZC01|0xabc123ef789abc123ef789abc123ef789abc123
Core Features
What makes DTL revolutionary
Schema-Driven
Every table declares fields and types inline, including enum constraints. Deterministic validation, zero ambiguity.
Enum Validation
New e(val1,val2) type enforces exact-match validation. Perfect for status codes, roles, categories.
Cryptographically Sealed
BLAKE3-256 hashing, Ed25519/secp256k1 signatures, row-chain integrity. One bit changes = instant detection.
Web3-Native
Wallet-bound signatures, blockchain anchoring, verifiable proofs. Perfect for decentralized identity and DeFi.
Ultra-Compact
40-60% smaller than JSON equivalents. Ideal for bandwidth-constrained IoT, edge, and satellite systems.
Multi-Platform SDKs
Python, TypeScript, .NET, and VS Code extension. Parse, validate, and generate DTL in any environment.
Official Packages & Tools
Production-ready SDKs and developer tools for every platform
VS Code Extension Features
Syntax Highlighting
Full highlighting for headers, tables, types, and enum values with special enum coloring.
Magic Corrections
Quick fixes for invalid enum values, wrong date formats, boolean conversions with lightbulb actions.
Enum Auto-Complete
IntelliSense shows valid enum values as you type. Type in data row → see allowed values.
DTLAuth: Modern Identity Tokens
Replace JWT, SAML, OIDC with deterministic, cryptographically sealed tokens
ID Tokens (dtID)
User identity with enum-validated roles and permissions. Deterministic format, hashed, signed, and verifiable.
Access Tokens (dtAC)
Scope and resource permissions with enum-constrained access levels. Cross-cloud, cross-chain capable.
DTLAuth Gateway
Reference implementation (FastAPI). Drop-in replacement for Keycloak, Auth0, Okta. Federation-ready.
@dtlv1.0^dtID^pDTLAuthID1^c0^s2^w1^tokenHash @sec^blake3hash^wa0xABCD99EF...^sg0x123...^chETH # Identity with enum-validated roles USER|uid:s,name:s,email:s,role:e(admin,user,guest,super)|1|S2|W1|C0 u-9001|Padam Kafle|padam@dtlaz.org|super # Permissions with enum scopes PERMS|uid:s,scope:e(read,write,admin,none),resource:s,exp:T|3|S2|W1|C0 u-9001|admin|api.axz.si/*|2026-12-31T23:59:59Z u-9001|write|files.axz.si/*|2026-12-31T23:59:59Z u-9001|read|public.axz.si/*|2099-12-31T23:59:59Z
Security Modes & Domain Codes
Flexible per-table configuration with locked domain registry
Security Modes (S)
| Mode | Description | Use Case |
|---|---|---|
S0 |
No extra security (inherits file defaults) | Public data, configs |
S1 |
Row-level hashing (BLAKE3-256) | Audit trails, integrity |
S2 |
Row-level hashing + encryption (AES-256-GCM) | PII, healthcare, financial |
Web3 Modes (W)
| Mode | Description | Use Case |
|---|---|---|
W0 |
No Web3 integration | Traditional applications |
W1 |
File-level digital signature | Document signing |
W2 |
Row-level digital signatures | Per-record provenance |
Domain Codes
| Code | Domain | Common Enum Types |
|---|---|---|
dtHC |
Healthcare | e(M,F,O), e(A+,A-,B+,...) |
dtFN |
Finance | e(USD,EUR,AED,...) |
dtIOT |
IoT & Sensors | e(online,offline,error) |
dtAI |
AI & ML | e(train,validate,test) |
dtID |
Identity & Auth | e(admin,user,guest) |
dtWEB |
Web & APIs | e(GET,POST,PUT,DELETE) |
Resources & Documentation
Complete specifications, SDKs, and integration guides
Getting Started
SDKs & Tools
Integration Guides
Ready to Transform Data Transport?
DTL is production-ready and open to enterprise adoption, healthcare integration, and Web3 deployment