What is z-namespace? - Terminal 3 Documentation

What is z-namespace?

The z: namespace is T3N’s tenant data layer. Every map and every registered contract you create as a tenant lives under z:<tid>:…, where <tid> is the 20-byte lowercase hex suffix of your tenant DID.

ALL MAPS
│
├── AppKvMap (system data — T3N engineers only)
│   ├── users, auth, dids, scripts, outbox_*…
│   └── idx:_tenants, idx:_tenant_contracts…
│
└── z:<tid>:<tail> (your data — you own this)
    ├── z:<tid>:secrets           ← your Duffel API key, sealed inside the enclave
    └── z:<other-tid>:anything   ← DENIED (cross-tenant isolation enforced at every KV op)

The cluster enforces one rule at hardware level: a contract can only read or write maps whose prefix matches its own <tid>. There is no ACL misconfiguration that can break this — the check runs inside the TDX enclave at every transaction.What T3N guarantees:

For the full access-control model (readers/writers ACLs per map), see Storage Namespaces.