> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arcium.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Attestation

> How the MPC parties authenticate the GPU and admit the engine, and how your client checks it is talking to that engine, with no CPU TEE.

Before your client sends a prompt, it needs to know that the key it encrypts to belongs to the approved engine, running inside a genuine NVIDIA GPU. That comes down to three questions:

1. **Are the MPC parties configured correctly?** Your client checks that every party signed, which policy they enforce, and that the policy and their keys are in the public log.
2. **Is the GPU genuine, and is it encrypting?** Your client checks the GPU's own evidence, up to NVIDIA's root, and its signed firmware measurements against NVIDIA's reference values.
3. **Does the GPU run the expected engine and model?** The parties' policy pins the engine, and your session's keys are bound to the model's weights.

In Blackthorn the MPC parties do the checks on the GPU's side, and your client checks their signatures and the GPU's evidence. [`blackthorn verify`](#check-it-yourself) shows every check.

**1. The parties authenticate the GPU**

They run the GPU's SPDM handshake in MPC, accept only the GPU whose identity certificate their policy pins, and take its signed firmware measurements.

**2. The parties admit the engine**

They admit the engine's code into the GPU's protected memory only as their policy pins it, then give it the key it derives session keys from.

**3. Your client checks the engine's key**

For each session, every party signs the engine's public key, and your client checks those signatures against the parties' identities, which are built into the CLI.

## 1. The parties authenticate the GPU

When the host's driver brings up a GPU in Confidential Computing mode, the GPU starts an SPDM handshake. SPDM, the DMTF's Security Protocol and Data Model, is the standard NVIDIA uses to authenticate the GPU and set up its encrypted channels. Normally the driver is the other side of the handshake. In Blackthorn the MPC parties are, and the driver only relays messages:

* The GPU sends its certificate chain. Each party's policy pins this one GPU's identity certificate, which NVIDIA issued, and the party refuses any other device.
* The GPU signs the key exchange with the key its certificate names, which ties the session to that GPU.
* The parties' half of the key exchange is computed in MPC: the ephemeral key, the shared secret, the key schedule and the `FINISH` message. No party, and not the host, ever holds the session's secret.
* The GPU's encrypted channels are keyed from that secret, so their keys exist only as shares across the parties, except the one key below that the host gets for the public weights.

Your client doesn't take the parties' word for the GPU. The parties hand out the session's evidence, the GPU's certificate chain and the handshake messages it signed, and your client checks it itself: the chain up to NVIDIA's Device Identity CA, which is built into it, the GPU's signature over the key exchange, and that the parties' receipt names exactly that handshake (see [Check it yourself](#check-it-yourself)).

### The GPU's measurements

Once the session is up, the parties ask the GPU for its firmware measurements inside the encrypted session, as NVIDIA's own driver asks for them. The GPU signs them with its attestation key, over a nonce that is this session's own key-exchange random, so they belong to this session and no other. The host only carries the sealed request and the sealed answer: it can withhold the answer, which leaves the measurements missing, but it can't forge them.

Your client checks the GPU's signature over the measurements and compares them with NVIDIA's reference values (RIMs) for that driver and VBIOS. The CLI fetches the reference values from NVIDIA's RIM service.

From then on, on the channels this session set up, the GPU accepts a command only with a signature the parties compute together, and a write into its protected memory only if the parties encrypted it. The host gets one key, the one for uploading the public weights, and the parties confine what it is used for to copies into the weights' region.

## 2. The parties admit the engine

The engine is the code that runs the model and handles your encryption inside the GPU. The host loads it, but every write into protected memory goes through the parties, and their policy pins the engine's image and launch descriptors by SHA-256 digest.

Once every pinned part of the engine is in place, and not before, the parties inject the application key into the engine. They derive it in MPC from the SPDM session and seal it so that only the GPU can open it. The engine derives a separate key for each client session from it.

A host that starts its own SPDM session with the GPU and loads code of its own never receives this key, so its code can't answer as the engine.

The policy is published. The host serves its text at `/v1/attestation/policy`, and each party signs the policy's SHA-256 in its receipt, so your client can check that the policy it reads is the one the parties enforce. The policy pins the GPU's identity certificate and every write that admits the engine.

### The public log

Every policy the hosted API runs, with the parties' public keys, the hosts and the models of that release, goes into a public log before the API serves it: [github.com/arcium-hq/blackthorn-transparency](https://github.com/arcium-hq/blackthorn-transparency). The log's own workflow signs each release into [Sigstore](https://www.sigstore.dev)'s transparency log, Rekor, where no one, Arcium included, can remove or rewrite an entry.

Your client checks that the policy the parties sign for is in the log, that the entry was signed by the log's workflow and accepted by Rekor, and that it names the parties that signed and, for a chat, its model. A policy or a party key changed without a new entry fails the check, and one changed with a new entry is there for anyone to see. The log doesn't make a policy a good one: it makes every policy public.

The CLI makes this check from 0.8.0.

## 3. Your client checks the engine's key

```mermaid theme={null}
sequenceDiagram
    participant C as Your client
    participant H as GPU host
    participant E as Engine (in the GPU)
    participant P as MPC parties
    C->>H: client public key + nonce
    H->>E: relayed
    E-->>C: engine public key (derived from the application key)
    C->>P: which engine key does this client key and nonce get?
    P-->>C: the key, signed by every party
    Note over C: accept only if the keys match and every party in the roster signed
    C->>E: prompt, encrypted to that key
```

1. Your client makes a fresh X25519 key pair and a random nonce, and sends the public key and the nonce to the engine.
2. The engine derives its key for this session from the application key, your public key and the nonce, and answers with its public key.
3. Your client asks the parties which key the engine should have answered with. The parties compute it in MPC from their shares of the application key, open only the public key, and each signs it with its Ed25519 identity.
4. Your client accepts the engine only if the key it got is that key and every party in its roster signed it. Both sides then derive an AES-256-GCM key for each direction, and the conversation starts.

Two more things go into those keys:

* **The model.** When it starts, the engine hashes the model's weights inside the GPU, and every session's keys include that digest, so the digest your client sees is the one the engine computed: a host that changed it would leave your client with keys the engine doesn't have. `blackthorn status` names the published model the digest belongs to, or says it doesn't know it.
* **The handshake count.** The engine counts its handshakes since it started, includes the count in each session's keys and returns it to your client. The parties give the engine its key only once per GPU session, so the count can't be reset. A host that replays your handshake gets a new session with new keys, never yours again.

The CLI from 0.7.0 asks for the model binding whenever the engine offers it, and for the handshake count always: it refuses an engine that doesn't offer it. Older CLIs still work but don't ask for it, so update.

A host that answers with a key of its own can't get it signed: one party that follows the protocol is enough to withhold its signature, and your client needs all of them.

The CLI makes this check for every session it opens, in `blackthorn chat` and in `blackthorn serve`, and refuses to send anything to an engine whose key the parties didn't sign.

## The roster

The roster is the list of the parties' public identity keys. The CLI has the roster of Arcium's hosted API, `bt-api.arcium.com`, built in, so it never takes the roster from the host it is checking. For any other host, pass the parties' `identities.json` with `--roster`, or set `BLACKTHORN_ROSTER`. That file has to come from the party operators, not from the GPU host.

## Session receipts

The parties sign a fresh receipt for the GPU session serving the host whenever your client asks. Each party signs, together with a random challenge from your client and the time:

* the SPDM session's final transcript hash,
* the SHA-384 of the GPU's certificate chain,
* both sides' nonces and ephemeral keys from the handshake,
* the SHA-256 of the policy it enforces,
* and the engine key that challenge would get.

## Check it yourself

`blackthorn verify` asks for a fresh receipt and checks it, with the GPU's evidence, without an API token:

```text theme={null}
$ blackthorn verify
Host     https://bt-api.arcium.com
Engine   key 8633d5b3…
GPU      NVIDIA GH100 (GH100 A01 GSP BROM 41F168C8…, NVIDIA:GH100:48B02D5A…)
ok       Gateway parties   all 3 parties signed the receipt (the expected roster)
ok       GPU certificate   GH100 A01 GSP BROM 41F168C8… chains to the NVIDIA Device Identity CA (built into this verifier) through NVIDIA's GH100 intermediates
ok       GPU signature     the GPU's attestation key signed the SPDM key exchange (SPDM 1.1, ECDSA P-384)
ok       GPU session       the receipt names this GPU-signed handshake: its transcript hash 7b0aebbd…, chain, nonces and keys
ok       GPU measurements  64 measurements, signed by the GPU's attestation key over this session's key-exchange nonce (driver 550.163.01, VBIOS 96.00.74.00.11)
ok       Reference values  every active reference value matches: driver 550.163.01 (21/21) and VBIOS 96.00.74.00.11 (12/12), from NVIDIA's RIM service (the RIMs' own signatures not checked)
ok       Gateway policy    the parties enforce the published policy (sha256 9525ccb9…): it pins this GPU's identity certificate, admits the engine by 12 pinned writes, …, and takes the GPU's measurements
ok       Public log        the policy and the parties' keys are in Blackthorn's public log: the release of 2026-11-25, signed into Sigstore's Rekor on 2026-11-25 (entry 4095028977)
--       Model             no session to show: a chat's keys are bound to the model the engine hashed at start (`blackthorn status` opens one)
```

`--save FILE` also keeps the attestation, and `blackthorn verify --file FILE` checks a saved one again later, offline. `--json` prints the report as JSON. `--no-rims` skips fetching NVIDIA's reference values.

`blackthorn status` makes the same checks with your token, and opens a session to check its model too:

```text theme={null}
ok       Model             the session's keys are bound to … (weights sha256 tree 34a1dde6…)
```

Both fail, with a non-zero exit status, if any check fails, including when the parties don't vouch for the session.

## What attestation covers

**It shows that:**

* the GPU is a genuine NVIDIA GPU, whose certificate chain leads to NVIDIA's root, and the session the parties hold is the one it signed, which your client checks itself;
* the GPU's driver and VBIOS firmware are the ones NVIDIA published: the GPU signed its measurements for this session, and they match NVIDIA's reference values;
* the engine your client talks to holds the application key the parties injected after the pinned engine was in place;
* the parties enforce the published policy, and it is in the public log with their keys;
* which model's weights your session's keys are bound to, and that they are bound to that handshake alone;
* every party in your roster agreed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.