Skip to main content
The Prem SDK and the Confidential Proxy verify attestation automatically by default. You can also run attestation directly. The @premai/reticle library lets you request hardware evidence, run the cryptographic and policy checks, and verify confidential environments before you send data.
Direct verification requires your Prem API key. If you do not have an API key, create one in the Prem Dashboard.

1. Install Reticle

Install the Reticle verification package from npm:
Reticle contains WebAssembly modules and Rust cryptographic verifiers. It runs on Node.js, Bun, Deno, modern browsers, and mobile devices (iOS and Android via React Native).

2. Verify with the high-level client

Use ClientBuilder to connect to the gateway and verify the runtime:
When you call client.attest(), Reticle does the following steps:
  1. Module discovery: It asks the gateway for available CPU and GPU modules.
  2. Freshness validation: It sends a fresh cryptographic nonce to prevent replay attacks.
  3. Signature verification: It downloads manufacturer certificate material and verifies the hardware signature.
  4. Policy evaluation: It evaluates the measured hardware state against configured golden policies.

3. Component verification

If you know the specific hardware architecture of your target backend, you can call individual verification methods directly:
Do not use low-level request methods (client.request_sev(), client.request_tdx(), or client.request_nvidia()) for verification. Those methods download raw evidence but do not perform cryptographic checks. Always use attest() or the attest_*() methods.

4. Appraise measurements with golden policies

Cryptographic verification proves that the report came from genuine hardware. To make sure that the hardware runs an approved software image, Reticle queries Open Policy Agent (OPA) rules. Prem publishes these rules in prem-research/confidential-policies. The repository contains golden policies for:
  • AMD SEV-SNP (sev/policy.rego): Evaluates guest policy and TCB levels.
  • Intel TDX (tdx/policy.rego): Enforces debug restrictions and minimum SVN levels.
  • NVIDIA GPU (nvidia/policy.rego): Validates device claims and token digests.
By default, the golden policies leave software measurements unpinned so they operate across different builds.

Attestation Concept

Read the full attestation architecture and current implementation status.

Security Model

Understand the threat model and confidential computing boundaries.

Golden Policies

Inspect the open Rego policies for SEV-SNP, TDX, and NVIDIA GPUs.

Mobile Example (Expo)

See how to run on-device Reticle verification in React Native.