Docs

The exact steps.

For people who want to check our work. Every step below is what the site's code does, in order.

1 · Get a fresh report

Pick 32 random bytes as a lowercase hex challenge and call the enclave:

GET https://inference.phala.com/v1/aci/attestation?nonce=<64 hex>

2 · Check it

CheckHow
Fingerprintsha256(JCS(workload_keyset)) equals workload_keyset_digest
Freshsha256('{"keyset_digest":"…","nonce":"…","purpose":"aci.report_data.v1"}') equals report_data
In the hardwarereport_data sits in the TDX quote's report-data field (byte 568)
Debug offbit 0 of the TD attributes (byte 168) is 0
Not expiredworkload_keyset.not_after is in the future
Intel signaturecheck the quote with a DCAP verifier (not done in the browser)

3 · Seal

Take the x25519-aes-256-gcm-hkdf-sha256 key from the checked keyset. For each field: new X25519 one-time key, ECDH with the enclave key, HKDF-SHA256 with info aci.e2ee.v2.x25519, AES-256-GCM with a 12-byte nonce. The associated data is the JCS of:

{"algo":"x25519-aes-256-gcm-hkdf-sha256","field":"messages.0.content",
 "model":"…","nonce":"<request nonce>","purpose":"aci.e2ee.request.v2","ts":<unix seconds>}

The sealed value is hex of one-time public key ‖ nonce ‖ ciphertext ‖ tag.

4 · Check a receipt

CheckHow
Signatureed25519 over JCS(receipt without signature), by receipt_signing_keys[key_id] from the checked keyset
Same enclavereceipt.workload_keyset_digest equals the report's
Same bytesrequest.received.body_hash and response.returned.body_hash match sha256 of what you sent and got
Confidential modelupstream.verified.result is verified and required is true

Sources

Phala's ACI specification and E2EE v2 protocol describe these formats. The site's own code is plain, unminified JavaScript: aci.js and live.js.