Skip to main content
The Core SDK verifies the Lit API before it sends a request, and a client made with createClient does it without any setup. This guide walks through the same checks one layer at a time, so you can see what each one establishes and confirm the results yourself. Some checks cannot reasonably be done by hand: verifying AMD’s signature chain and recomputing the launch measurement need a program. Step 1 uses the SDK’s verifier for those. It is one dependency-free file, lit-static/attestation.js, that you can read. The later steps use ordinary tools to check the values it reports.
New to TEE verification? Read What Is Attestation? first, then work through the layers in order.
Prerequisites: Node.js 22 or later, python3, openssl, curl, and optionally cosign and cast (from Foundry).

1. Verify the attestation report (Platform)

What this checks: Is the server a genuine AMD SEV-SNP confidential VM, and what did it boot? The processor signs an attestation report with a key only that chip holds. The report carries a measurement of the launch state and a field, HOST_DATA, that binds the app the VM runs.
verify.mjs
The call throws an AttestationError with a stable code if a check fails. A passing result looks like this, shortened:
composeHash changes with each release, and tlsKeySha256 changes when a release replaces the VM. What the verifier did to produce it: To look at the raw evidence, fetch it yourself. The nonce is any 32 random bytes in hex:
attestation holds the signed report and the documents it binds. collateral holds the AMD certificates for the chip, so a verifier does not have to fetch them from AMD.

2. Verify the application code (Application)

What this checks: Is the TEE running the exact code you expect, with no modifications? This step verifies the Docker images and their configuration match what was built in CI from the public GitHub repository.
Verify image provenance with Sigstore — Each image is signed with cosign (keyless, GitHub OIDC) during CI. This proves the image was built by GitHub Actions from the LIT-Protocol/chipotle repo:
The dstack-ingress image is a third-party dependency from the dstack project. It is Sigstore-signed from the dstack GitHub org, not from Lit’s. To verify it, use --certificate-identity-regexp "https://github.com/Dstack-TEE/dstack/.*" with the same OIDC issuer. See the dstack documentation for details on their signing and release process.

3. Verify TLS terminates in the TEE (Network)

What this checks: Does your HTTPS connection end inside the attested VM, with no proxy in between that could read it? Lit uses dstack-ingress for TLS on its own domain. It runs inside the VM, generates the TLS private key there and obtains a Let’s Encrypt certificate for it. It then publishes evidence at /evidences/: Because the report is signed by the processor and carries the hash of the manifest, the certificate in the manifest is one that this VM holds. Step 1 already verified that attestation and that it comes from the same app, and returned the hash of the attested TLS public key as tlsKeySha256. Check that the certificate you are served has that key:
During a release two VMs serve the hostname for a short time, each with its own key. If the keys differ, run Step 1 again and compare once more. You can also check the evidence files against their manifest:
A matching checksum is not attestation by itself. Anyone can serve a manifest and files that agree with each other. What makes the certificate trustworthy is the signed report in attestation.json that carries the manifest’s hash, and the check that the report comes from the governed app. The verifier in Step 1 does both. Steps 3c and 3d only show you the files it worked from.
Keeping the guarantee on later connections. A check on one connection says nothing about the next one. A client made with createClient pins every API connection to the verified key. If you use your own HTTP client in Node.js, createPinnedFetch from @lit-protocol/core-sdk/attestation returns a fetch that refuses any other key:
Browsers cannot inspect TLS certificates, so tlsBinding reports 'unsupported' there and the other checks still run. Verify from a server when the channel matters.

4. Verify on-chain governance (Governance)

What this checks: Was the code running in the TEE authorized through on-chain governance? The compose-hash (a fingerprint of the entire application configuration) must be registered in a smart contract on Base before the CVM will accept it. This means deploying new code requires an on-chain transaction — you can audit the full history on Basescan. The compose-hash must be registered in the DstackApp smart contract on Base before the key service will release keys to a CVM running it. A separate Phala KMS contract whitelists allowed OS images and KMS instances. You can inspect both on Basescan. Finding the DstackApp contract address: The DstackApp contract is the on-chain governance contract that authorizes what code the CVM can run. To find the correct address for a given CVM:
  1. Go to the Phala Cloud dashboard and look up the application by its app_id (available from GET /info). The dashboard shows the associated DstackApp contract address.
  2. Verify the contract is the one your CVM is attached to by checking the app_id in the /info response matches the app registered in the contract on Basescan.
For Lit Chipotle production, the DstackApp contract is 0x3F91Deaf16FF7C823eE65081d6bAFA1cEea05FfC (matches the app_id returned by GET /info). The Phala KMS contract is 0x2f83172A49584C017F2B256F0FB2Dca14126Ba9C.
Governance via Safe multisig: Lit’s on-chain governance actions are controlled by a Safe multisig (0xF688411c0FFc300cAb33EB1dA651DBb3E6891098) on Base. This Safe administers: The Phala KMS contract (0x2f83172A49584C017F2B256F0FB2Dca14126Ba9C) — which whitelists allowed OS images and KMS instances — is not administered by the Lit Safe. It is a shared Phala-operated contract whose owner() is a separate Phala-controlled Safe (0x3926658a072F82BAEa5e5a15e1Fed8a776F4a663, 2-of-3). Verify with cast call 0x2f83172A49584C017F2B256F0FB2Dca14126Ba9C "owner()(address)" --rpc-url https://mainnet.base.org. Any Lit governance action (e.g., whitelisting a new compose-hash or upgrading the AccountConfig Diamond) requires Lit Safe signer approval. Production deployments use a two-phase workflow: CI proposes the transaction to the Safe, and signers approve it through the Safe UI before the deployment can proceed.