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:
- Your maps are inaccessible to other tenants and to system contracts.
- User PII (
usersmap) is unreachable to your contract’s direct reads — PII flows through thehttp-with-placeholdershost interface, which substitutes it into outbound requests inside the enclave (see Placeholders in outbound calls). - Every operation your contract performs lands in the cluster’s append-only audit log with your tenant DID as a first-class field.
For the full access-control model (readers/writers ACLs per map), see Storage Namespaces.