Plaintext stays inside TEE memory
TLS ends inside the gateway TEE. Each request is sealed to the provider enclave’s key, so the router carries only ciphertext and never holds the key.
Why 0G can’t read your Private Compute prompts—and how to verify it yourself.
This is the short version. The procedure is verifying-the-gateway.md; the design is under design/.
TLS ends inside the gateway TEE. Each request is sealed to the provider enclave’s key, so the router carries only ciphertext and never holds the key.
Keys are created and kept inside enclave memory. Neither the cloud host nor 0G operators can inspect the keys, prompts, or decrypted responses.
Gateway and provider TEEs publish hardware-signed measurements and release builds, allowing anyone to verify exactly which code is running.
The router forwards and bills every request, but it never receives the key needed to open the sealed body.
Ciphertext · TLS
Your browser
A standard HTTPS session terminating inside the gateway TEE.
Plaintext · memory
Gateway TEE
The request is sealed to the verified provider enclave's key.
Ciphertext · HPKE
0G router
Forwards the sealed body opaquely and never holds the decryption key.
Plaintext · memory
Provider TEE
The model runs inside the same attested enclave that decrypts the request.
Ciphertext · signed
Response
Returns sealed with an enclave signature the router cannot forge.
The ingress creates its private key inside the confidential VM and commits the served certificate into an Intel TDX attestation quote. Matching them proves that TLS terminated inside the enclave.
The quote commits to the deployment manifest, which pins every container by digest. Any code change produces a different hardware-signed measurement that anyone can compare with a published release.
The gateway DCAP-verifies the provider quote and reads its encryption key from that verified evidence, never from the router. Unverified providers and unsigned responses are rejected.
Build the verifier and run one command against a gateway domain. It validates Intel's quote, the certificate served to your connection, the code hash, and its published release.
Encrypting the body does not hide all surrounding metadata. The router can read and bill these fields, but the enclave signature prevents it from altering them.