# Deploying the WORM in a TEE

First build the enclave using [nix](https://github.com/DeterminateSystems/nix-installer):

```
git clone https://github.com/BrainsOnChain/DeepWorm
cd DeepWorm/worm
nix build -v
```

The above creates a directory called `result`.

```
$ ls result/
image.eif  log.txt  pcr.json
```

Host image.eif at a publicly follow the steps [here](http://docs.marlin.org/user-guides/oyster/instances/quickstart/deploy) to deploy the enclave image on a Marlin node with the following parameters:

Instance: c6a.xlarge\
Architecture: amd64\
Region: Any\
Bandwidth: 10 KB/s\
vCPU: Default\
Memory: Default

The `pcr.json` file contains the enclave PCRs which can be used to verify against TEE attestations.

<figure><img src="/files/C6q6iGLKZk7h7nHPujcc" alt=""><figcaption><p>Deploying the EIF on hub.marlin.org</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.deepworm.xyz/deepworm/developer-guides/deploying-the-worm-in-a-tee.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
